<보기>의 기준 URL과 출처(origin)가 동일한 URL… | [7급 서울시 정보보호론] 26년 1회차 기출문제 상세 페이지
1[7급 서울시 정보보호론] 26년 1회차
<보기>의 기준 URL과 출처(origin)가 동일한 URL은?<보기>
기준 URL: https://example.com/account/index.html
1
http://example.com/account/list.html
2
https://example.com/profile/list.html
3
https://shop.example.com/account/index.html
4
https://example.com:8443/account/index.html
해설
출처(origin)는 스킴·호스트·포트가 모두 같아야 동일하며, 경로만 다른 https://example.com/profile/list.html 이 기준 URL과 같은 출처이다.
경로(path)는 출처 판단에 포함되지 않으므로, 같은 https 스킴·example.com 호스트·기본 포트를 쓰는 URL은 동일 출처가 된다.
- http를 쓰는 URL은 스킴이 달라 다른 출처이다.
- shop.example.com은 하위 도메인이라도 호스트가 달라 다른 출처이다.
- 8443 포트를 명시한 URL은 https 기본 포트와 달라 다른 출처이다.
오류나 개정된 내용이 보이면 알려주세요