The Same-Origin Policy is a browser security rule that stops a webpage from freely reading data from a different origin. An origin is defined by the scheme, host, and port, so a page loaded from one site cannot automatically inspect the cookies, DOM content, or responses of another site.
This matters because browsers handle sensitive sessions for email, cloud apps, and internal tools. Without this boundary, a malicious page could steal data from a logged-in service or silently probe private content. Attackers often try to bypass the rule with cross-site scripting, misconfigured cross-origin sharing, or browser flaws that weaken isolation. Defenders rely on it as a core containment layer, and strengthen it with safe CORS settings, content security policy, and sandboxing. When browser vulnerabilities are patched quickly, they help preserve this boundary before an attacker can turn a small web bug into a data theft path.


