
跨域
np918
这个作者很懒,什么都没留下…
展开
-
跨域总结:从CORS到Ngnix
转载至掘金转载 2020-03-17 17:59:41 · 328 阅读 · 0 评论 -
cookie跨域访问的解决方案
在A系统下成功登陆后,利用js动态创建一个隐藏的iframe,通过iframe的src属性将A域下的cookie值座位get参数重定向到B系统下b.aspx页面上 var _frm = document.createElement("iframe"); _frm.style.display="none"; _frm.src="http://b.com/b.jsp?test_cookie...转载 2019-07-27 09:38:52 · 756 阅读 · 0 评论 -
如何解决跨域问题
1.jsonp跨域(前端)JSON返回的是一串数据,而JSONP返回的是脚本代码JSONP只支持get请求,不支持post请求2.nginx反向代理(后端)www.baidu/index.html需要调用www.sina.com/server.php,可以写一个接口www.baidu.com/server.php,由这个接口在后端去调用www.sina.com/server.php并拿到返...原创 2019-07-24 19:53:29 · 1042 阅读 · 0 评论