前端跨域的方式

.前端跨域的方式

前端跨域的方案:

1、通过jsonp跨域
2、document.domain+iframe跨域
3、location.hash+iframe
4、window.name+iframe跨域
5、postMessage跨域
6、跨域资源共享(CORS)
7、nginx代理跨域
8、nodejs中间件代理跨域
9、WebSocket协议跨域

详细过程链接:https://segmentfault.com/a/1190000011145364?utm_source=tag-newest

posted on 2019-12-03 22:28  是夏目呀  阅读(112)  评论(0编辑  收藏  举报

导航