https://www.cnblogs.com/kevin-zjy-blog/p/7357220.html

 

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

 

那么就需要安装chrome浏览器的cors插件来解决开发环境下面的跨域问题,等开发完成后上传到正式服务器就ok啦。

相关文章:

  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2021-07-17
  • 2021-10-12
  • 2022-01-21
相关资源
相似解决方案