Same-Origin Policy
A core mechanism of the browser security model that stipulates only requests sharing the same protocol, domain, and port are treated as same-origin. It prevents malicious websites from accessing resources hosted under different origins.
Timeline (last 90 days)
The Public Suffix List (PSL) is a key data source used by browsers and many security components to determine registrable domain boundaries; the large addition of new TLDs requires the PSL to be updated promptly, otherwise Cookie scope, same-origin policy, and certificate domain matching may behave abnormally.
The Cookie scope shared between subdomains and the main domain is independent of the same-origin policy; it is a transport-layer behavior that can be used for cross-subdomain session fixation or identity impersonation.
The same-origin policy treats different subdomains as different origins, so scripts cannot directly read each other's DOM.
When the parent page and the iframe are cross-origin, they cannot directly access each other's DOM and can only cooperate through the postMessage API or by listening for changes to each other's location.
Many websites embed consent management platforms in cross-origin iframes; restricted by the same-origin policy, the extension's content script cannot directly access the DOM inside the iframe, making automatic clicking of the reject button difficult.
The key difference between Universal XSS (UXSS) and ordinary XSS is that ordinary XSS relies on an injection point in the target site itself and can only affect that site's users, whereas UXSS exploits vulnerabilities in the browser or extension itself to bypass the same-origin policy and execute scripts on arbitrary pages the attacker does not control.
In the browser security model, an origin consists of the triple of protocol, host and port, and any difference is treated as cross-origin.
DNS rebinding attacks exploit the fact that the browser same-origin policy judges by protocol, domain and port rather than the actual IP address, bypassing the same-origin policy by rapidly switching where domain resolution points.
The same-origin policy is the premise for CORS's existence: by default the browser forbids scripts from one origin to read responses from another origin, and CORS is a protocol-layer mechanism by which the server declares that it is willing to be accessed cross-origin.
The browser same-origin policy states that each web page's origin consists of protocol, domain, and port, and browsers by default prohibit scripts from one origin from reading or manipulating data from another origin.
1 more timeline events
All Facts (12)
The Public Suffix List (PSL) is a key data source used by browsers and many security components to determine registrable domain boundaries; the large addition of new TLDs requires the PSL to be updated promptly, otherwise Cookie scope, same-origin policy, and certificate domain matching may behave abnormally.
50%UnverifiedThe Cookie scope shared between subdomains and the main domain is independent of the same-origin policy; it is a transport-layer behavior that can be used for cross-subdomain session fixation or identity impersonation.
50%UnverifiedThe same-origin policy treats different subdomains as different origins, so scripts cannot directly read each other's DOM.
50%UnverifiedWhen the parent page and the iframe are cross-origin, they cannot directly access each other's DOM and can only cooperate through the postMessage API or by listening for changes to each other's location.
50%UnverifiedMany websites embed consent management platforms in cross-origin iframes; restricted by the same-origin policy, the extension's content script cannot directly access the DOM inside the iframe, making automatic clicking of the reject button difficult.
50%UnverifiedThe key difference between Universal XSS (UXSS) and ordinary XSS is that ordinary XSS relies on an injection point in the target site itself and can only affect that site's users, whereas UXSS exploits vulnerabilities in the browser or extension itself to bypass the same-origin policy and execute scripts on arbitrary pages the attacker does not control.
50%UnverifiedIn the browser security model, an origin consists of the triple of protocol, host and port, and any difference is treated as cross-origin.
50%UnverifiedDNS rebinding attacks exploit the fact that the browser same-origin policy judges by protocol, domain and port rather than the actual IP address, bypassing the same-origin policy by rapidly switching where domain resolution points.
50%UnverifiedThe same-origin policy is the premise for CORS's existence: by default the browser forbids scripts from one origin to read responses from another origin, and CORS is a protocol-layer mechanism by which the server declares that it is willing to be accessed cross-origin.
50%UnverifiedThe browser same-origin policy states that each web page's origin consists of protocol, domain, and port, and browsers by default prohibit scripts from one origin from reading or manipulating data from another origin.
50%UnverifiedThe technical community has proposed drawing on the same-origin policy concept from browser security models to establish domain-level access isolation for agents
50%UnverifiedlocalStorage 遵循同源策略,即同协议、同域名、同端口下的页面共享同一存储空间
50%