同源策略(Same Origin Policy) 如果两个 URL 的协议、域名和端口都相同,我们就称这两个 URL 同源。 比如,这个 http://store.company.com/dir/page.html 和下面这些 URL 相比源的结果如下: 1 2 3 4 5 http://store.company.com/dir2/other.html // 同源,只有路径不同 http://s…
同源策略(Same Origin Policy) 如果两个 URL 的协议、域名和端口都相同,我们就称这两个 URL 同源。 比如,这个 http://store.company.com/dir/page.html 和下面这些 URL 相比源的结果如下: 1 2 3 4 5 http://store.company.com/dir2/other.html // 同源,只有路径不同 http://s…
讨论
登录后参与讨论
还没有评论,来说第一句吧。