Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 960

Same-Origin Policy (SOP)

What is Same-Origin Policy (SOP)?

Same-Origin Policy (SOP)Browser security rule that restricts how a document or script loaded from one origin can interact with a resource from a different origin.


The Same-Origin Policy is the foundational isolation boundary of the web. Two URLs share an origin only when their scheme, host, and port all match; otherwise the browser blocks scripts from reading responses, accessing the DOM of cross-origin frames, or inspecting cookies that belong to another site. SOP prevents a malicious page from silently stealing the contents of a banking session opened in another tab. It is selectively relaxed by mechanisms such as CORS, postMessage, and JSONP. Misconfigured exceptions are a frequent root cause of cross-origin data leakage and authentication bypass bugs.

Frequently asked questions

What is Same-Origin Policy (SOP)?

Browser security rule that restricts how a document or script loaded from one origin can interact with a resource from a different origin. It belongs to the Application Security category of cybersecurity.

What does Same-Origin Policy (SOP) mean?

Browser security rule that restricts how a document or script loaded from one origin can interact with a resource from a different origin.

How does Same-Origin Policy (SOP) work?

The Same-Origin Policy is the foundational isolation boundary of the web. Two URLs share an origin only when their scheme, host, and port all match; otherwise the browser blocks scripts from reading responses, accessing the DOM of cross-origin frames, or inspecting cookies that belong to another site. SOP prevents a malicious page from silently stealing the contents of a banking session opened in another tab. It is selectively relaxed by mechanisms such as CORS, postMessage, and JSONP. Misconfigured exceptions are a frequent root cause of cross-origin data leakage and authentication bypass bugs.

How do you defend against Same-Origin Policy (SOP)?

Defences for Same-Origin Policy (SOP) typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for Same-Origin Policy (SOP)?

Common alternative names include: SOP.

Related terms

See also