동일-오리진 정책

Jmnote (토론 | 기여)님의 2017년 1월 24일 (화) 22:28 판 (새 문서: ==개요== ;same-origin policy ;동일-출처 정책, 동일-오리진 정책 * 웹 애플리케이션 보안 모델의 주요 개념 중 하나 ==예시== * http://www.example.com/d...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

same-origin policy
동일-출처 정책, 동일-오리진 정책
  • 웹 애플리케이션 보안 모델의 주요 개념 중 하나

2 예시


비교 URL 결과 이유
http://www.example.com/dir/page2.html Success 동일 프로토콜·호스트·포트
http://www.example.com/dir2/other.html Success 동일 프로토콜·호스트·포트
http://username:password@www.example.com/dir2/other.html Success 동일 프로토콜·호스트·포트
http://www.example.com:81/dir/other.html Failure 포트 다름
https://www.example.com/dir/other.html Failure 프로토콜 다름
http://en.example.com/dir/other.html Failure 호스트 다름
http://example.com/dir/other.html Failure 호스트 다름 (완전히 같아야 함)
http://v2.www.example.com/dir/other.html Failure 호스트 다름 (완전히 같아야 함)
http://www.example.com:80/dir/other.html Depends 포트 명시. 브라우저에 따라 결정됨

3 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}