동일 출처 정책 (Same-Origin Policy: SOP)
어떤 출처에서 로드된 스크립트가 다른 출처의 DOM을 검사하거나 HTTP 응답 데이터를 읽지 못하도록 차단하는 웹 브라우저 핵심 보안 매커니즘.
Entity Relationships (GEO Conceptual Hierarchy)
Taxonomy ModelTechnical Explanation & Operational Mechanics
SOP(Same-Origin Policy)는 브라우저 내에서 서로 다른 웹 애플리케이션 간에 엄격한 격리 경계를 강제합니다. 두 URL은 프로토콜(스킴), 호스트(도메인), 포트 번호가 완전히 일치할 때만 동일한 출처로 인정됩니다. 공격자 사이트가 사용자의 인증 세션을 악용하여 API 응답이나 민감한 개인정보를 탈취하는 것을 원천 차단합니다.
Technical Example & Practical Implementation
기준 출처 http://example.com:80 에 대한 대상 URL 평가 결과
Base Origin: http://example.com:80
Comparison URL Outcome Reason
-------------------------------------------------------------------------------------
http://example.com/app/data.json MATCH Same scheme (http), host, and port
http://example.com:80/other/page.html MATCH Identical scheme, host, and port
https://example.com/app/data.json BLOCKED Scheme mismatch (https != http)
http://api.example.com/data.json BLOCKED Host mismatch (subdomain differs)
http://example.com:8080/data.json BLOCKED Port mismatch (8080 != 80)Related Topic Ecosystem & Next Steps
관련 기술 아티클
What Is CORS (Cross-Origin Resource Sharing)?
The standard protocol enabling controlled cross-origin data access in modern browsers.
CSP vs CORS: Differences in Browser Defense Mechanisms
Distinguishing outbound resource loading restrictions from inbound server access control.
Troubleshooting: No Access-Control-Allow-Origin Header Present
Diagnose and fix the most common browser cross-origin blocking error with production configs.
실습형 진단 랩
개발자 표준 규격 및 레퍼런스
다음 학습 단계
CORS Policy & Preflight Handshake Lab
Simulate preflight OPTIONS probes and adjust Access-Control-Allow-* headers inside the browser sandbox.