前端跨域问题方案

版权声明:小苹果的成长笔记 https://blog.csdn.net/weixin_42416812/article/details/88938351

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

猜你喜欢

转载自blog.csdn.net/weixin_42416812/article/details/88938351
今日推荐