Cross-Origin-Resource-Policy
语法
http
Cross-Origin-Resource-Policy: same-site | same-origin | cross-origin
示例
以下响应标头将导致兼容的用户代理拒绝 no-cors 模式下的跨源请求:
http
Cross-Origin-Resource-Policy: same-origin
有关更多示例,请参阅 https://resourcepolicy.fyi/。
规范
Specification |
---|
Fetch # cross-origin-resource-policy-header |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Cross-Origin-Resource-Policy |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.