docs.rodeo

MDN Web Docs mirror

Cross-Origin-Resource-Policy

{{HTTPSidebar}} 

The HTTP Cross-Origin-Resource-Policy {{Glossary("response header")}}  (CORP) indicates that the browser should block no-cors cross-origin or cross-site requests to the given resource.

It specifies resource owner’s policy for what sites/origins should be allowed to load this resource.

Header type `{{Glossary("Response header")}}` 
`{{Glossary("Forbidden header name")}}`  No

Syntax

Cross-Origin-Resource-Policy: same-site | same-origin | cross-origin

Directives

Examples

For more examples, see https://resourcepolicy.fyi/.

Disallowing cross-origin no-cors requests

The Cross-Origin-Resource-Policy header below will cause compatible user agents to disallow cross-origin no-cors requests:

Cross-Origin-Resource-Policy: same-origin

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN