# Same-Origin Policy (SOP)

> What is the Same-Origin Policy, what exactly defines an origin, and what does the policy allow and block?

Canonical: https://www.internhack.in/learn/interview/web-security/security-same-origin-policy
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

What is the Same-Origin Policy, what exactly defines an origin, and what does the policy allow and block?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Same-Origin Policy, Origin, CORS, Same-Site vs Same-Origin, Cross-Origin Reads

Previous: [Subresource Integrity (SRI)](https://www.internhack.in/learn/interview/web-security/security-subresource-integrity) · Next: [Brute Force Protection](https://www.internhack.in/learn/interview/web-security/security-brute-force-vulnerability) · [All of Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)

## More Web Security (OWASP, JWT, XSS, CSRF) questions

- [CSPRNG](https://www.internhack.in/learn/interview/web-security/security-cryptographically-secure-random)
- [Data at Rest](https://www.internhack.in/learn/interview/web-security/security-sensitive-data-rest)
- [Security Misconfiguration](https://www.internhack.in/learn/interview/web-security/security-security-misconfiguration)
- [Phishing Protection](https://www.internhack.in/learn/interview/web-security/security-phishing-prevention)
- [Social Engineering](https://www.internhack.in/learn/interview/web-security/security-social-engineering-basics)
- [Buffer Overflow](https://www.internhack.in/learn/interview/web-security/security-buffer-overflow-intro)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)
