오리진, 동일 오리진 정책

origin
오리진, 출처
same-origin policy
동일 오리진 정책, 동일 출처 정책

1 오리진[ | ]

2 동일 오리진 정책[ | ]

  • 보안상의 이유로 다른 오리진에 리퀘스트를 할 수 없는 정책

3 예시[ | ]

오리진이 같은 경우[1]
URI 스킴 호스트 포트
http://example.com/ http example.com 80
http://example.com:80/ http example.com 80
http://example.com/path/file http example.com 80
오리진이 다른 경우
URI 스킴 호스트 포트
http://example.com/ http example.com 80
http://example.com:8080/ http example.com 8080
http://www.example.com/ http www.example.com 80
https://example.com:80/ https example.com 80
https://example.com/ https example.com 443
http://example.org/ http example.org 80
http://ietf.org/ http ietf.org 80
→ 각각 오리진이 서로 다름. (즉 스킴, 호스트, 포트 중 1개 이상이 다름)

4 같이 보기[ | ]

5 주석[ | ]

6 참고[ | ]

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