摘要: ## 同源策略 协议 域名 端口 3个都一致叫同域,有1个不一致叫跨域 ## 为什么浏览器不支持跨域 cookie LocalStorage DOM元素也有同源策略 iframe ajax 也不支持跨域 ## 实现跨域 - jsonp - cors - postMessage - document. 阅读全文
posted @ 2019-01-30 19:01 Sampson1207 阅读(127) 评论(0) 推荐(0) 编辑