Skip to main content
All Terms Glossary

Same-Origin Policy (SOP)

Definition

The Same-Origin Policy is a critical browser security mechanism that restricts how a document or script loaded from one origin can interact with resources from other origins. It helps prevent malicious sites from reading sensitive data from other websites. The policy considers two URLs to have the same origin if they share the same protocol, host, and port number.

Definition

What is Same-Origin Policy (SOP)?

The Same-Origin Policy is a critical browser security mechanism that restricts how a document or script loaded from one origin can interact with resources from other origins. It helps prevent malicious sites from reading sensitive data from other websites. The policy considers two URLs to have the same origin if they share the same protocol, host, and port number.

Definition

How does Same-Origin Policy (SOP) relate to client-side security?

Same-Origin Policy (SOP) is an important concept in client-side security that helps protect websites and web applications from various threats and vulnerabilities. The Same-Origin Policy is a critical browser security mechanism that restricts how a document or script loaded from one origin can interact with resources from other origins. It helps prevent malicious sites from reading sensitive data from other websites. The policy considers two URLs to have the same origin if they share the same protocol, host, and port number.

Got more questions

Talk to a security expert

We answer client-side security questions every day. Bring yours.

Book a demo