Web - Same-origin policy

来源:互联网 发布:浙江大学软件学院地址 编辑:程序博客网 时间:2024/05/19 02:41
In computing, the same-origin policy is an important concept in the web application security model. The policy permits scripts running on pages originating from the same site – a combination of scheme, hostname, and port number – to access each other's DOM with no specific restrictions, but prevents access to DOM on different sites. The same-origin policy also applies to XMLHttpRequests unless the server provides an Access-Control-Allow-Origin (CORS) header. Notably, WebSockets are not subject to the same-origin policy.
6 0
原创粉丝点击