Site - MDN Web Docs Glossary: Definitions of Web-related terms 编辑
The site of a piece of web content is determined by the registrable domain of the host within the origin. This is computed by consulting a Public Suffix List to find the portion of the host which is counted as the public suffix (e.g. com, org or co.uk).
The concept of a site is used in SameSite cookies, as well as a web application's Cross-Origin Resource Policy.
Examples of the same site
/wiki/en-US/docs/ https://support.mozilla.org/en-US/ | same site because the registrable domain of mozilla.org is the same |
http://example.com:8080 https://example.com | same site because scheme and port are not relevant |
Examples of different site
/wiki/en-US/docs/ https://example.com | not same site because the registrable domain of the two URLs differs |
Specifications
Specification | Status | Comment |
---|---|---|
URL | Living Standard | Initial definition |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论