49

前端跨域问题解决方案(基于node与nginx)

 5 years ago
source link: https://juejin.im/post/5c35f6286fb9a049be5dad82
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1.跨域是什么 跨域是指去向一个为非本origin(协议、域名、端口任意一个不同)的目标地址发送请求的过程,这样之所以会产生问题是因为浏览器的同源策略限制。看起来同源策略影响了我们开发的顺畅性.实则不然,同源策略存在的必要性之一是为了隔离攻击。 同源策略

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK