"동일-오리진 정책"의 두 판 사이의 차이

(새 문서: ==개요== ;same-origin policy ;동일-출처 정책, 동일-오리진 정책 * 웹 애플리케이션 보안 모델의 주요 개념 중 하나 ==예시== * http://www.example.com/d...)
 
 
(사용자 2명의 중간 판 7개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;same-origin policy
;same-origin policy
;동일-출처 정책, 동일-오리진 정책
;동일-오리진 정책, 동일-출처 정책
* 웹 애플리케이션 보안 모델의 주요 개념 중 하나
* 웹 애플리케이션 보안 모델의 주요 개념 중 하나


==예시==
==예시==
* http://www.example.com/dir/page.html
* http://www.example.com/dir/page.html


{| class="wikitable"
{| class="wikitable"
15번째 줄: 14번째 줄:
|-
|-
| '''<nowiki>http://www.example.com</nowiki>'''/dir/page2.html
| '''<nowiki>http://www.example.com</nowiki>'''/dir/page2.html
| {{Yes|Success}}
| {{Yes|성공}}
| 동일 프로토콜·호스트·포트
| 동일 프로토콜·호스트·포트
|-
|-
| '''<nowiki>http://www.example.com</nowiki>'''/dir2/other.html
| '''<nowiki>http://www.example.com</nowiki>'''/dir2/other.html
| {{Yes|Success}}
| {{Yes|성공}}
| 동일 프로토콜·호스트·포트
| 동일 프로토콜·호스트·포트
|-
|-
| '''http://'''username:password@'''<nowiki>www.example.com</nowiki>'''/dir2/other.html
| '''http://'''username:password@'''<nowiki>www.example.com</nowiki>'''/dir2/other.html
| {{Yes|Success}}
| {{Yes|성공}}
| 동일 프로토콜·호스트·포트
| 동일 프로토콜·호스트·포트
|-
|-
| <nowiki>http://www.example.com</nowiki>:'''81'''/dir/other.html
| <nowiki>http://www.example.com</nowiki>:'''81'''/dir/other.html
| {{No|Failure}}
| {{No|실패}}
| 포트 다름
| 포트 다름
|-
|-
| '''https'''://www.example.com/dir/other.html
| '''https'''://www.example.com/dir/other.html
| {{No|Failure}}
| {{No|실패}}
| 프로토콜 다름
| 프로토콜 다름
|-
|-
| http://'''en.example.com'''/dir/other.html
| http://'''en.example.com'''/dir/other.html
| {{No|Failure}}
| {{No|실패}}
| 호스트 다름
| 호스트 다름
|-
|-
| http://'''example.com'''/dir/other.html
| http://'''example.com'''/dir/other.html
| {{No|Failure}}
| {{No|실패}}
| 호스트 다름 (완전히 같아야 함)
| 호스트 다름 (완전히 같아야 함)
|-
|-
| http://'''v2.www.example.com'''/dir/other.html
| http://'''v2.www.example.com'''/dir/other.html
| {{No|Failure}}
| {{No|실패}}
| 호스트 다름 (완전히 같아야 함)
| 호스트 다름 (완전히 같아야 함)
|-
|-
| <nowiki>http://www.example.com:</nowiki>'''80'''/dir/other.html
| <nowiki>http://www.example.com:</nowiki>'''80'''/dir/other.html
| {{n/a|Depends}}
| {{n/a|불확실}}
| 포트 명시. 브라우저에 따라 결정됨
| 포트 명시. 브라우저에 따라 동작이 다를 수 있음
|}
|}


==참고 자료==
==같이 보기==
* https://ko.wikiphttps://en.wikipedia.org/wiki/Same-origin_policyedia.org/wiki/동일-출처_정책
* [[크로스-오리진 리소스 공유]] (CORS)
* [[크로스-사이트 스트립팅]] (XSS)
* [[크로스-사이트 요청 위조]] (CSRF)
* [[콘텐츠 보안 정책]]
* [[웹 메시징]]
* [[Refused to display 'https://example.com' in a frame because it set 'X-Frame-Options' to 'sameorigin'.]]
 
==참고==
* {{위키백과|동일-출처 정책}}
* {{영어위키백과|Same-origin policy}}


[[분류: 보안]]
[[분류: 보안]]

2018년 5월 26일 (토) 14:49 기준 최신판

1 개요[ | ]

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

2 예시[ | ]

비교 URL 결과 이유
http://www.example.com/dir/page2.html 성공 동일 프로토콜·호스트·포트
http://www.example.com/dir2/other.html 성공 동일 프로토콜·호스트·포트
http://username:password@www.example.com/dir2/other.html 성공 동일 프로토콜·호스트·포트
http://www.example.com:81/dir/other.html 실패 포트 다름
https://www.example.com/dir/other.html 실패 프로토콜 다름
http://en.example.com/dir/other.html 실패 호스트 다름
http://example.com/dir/other.html 실패 호스트 다름 (완전히 같아야 함)
http://v2.www.example.com/dir/other.html 실패 호스트 다름 (완전히 같아야 함)
http://www.example.com:80/dir/other.html 불확실 포트 명시. 브라우저에 따라 동작이 다를 수 있음

3 같이 보기[ | ]

4 참고[ | ]

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