GO-V.ORG
As seen in

Cross-Origin-Resource-Policy (CORP) header

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

The HTTP **`Cross-Origin-Resource-Policy`** response header (CORP) indicates that the browser should block [`no-cors`](/docs/Web/API/RequestInit#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.

<table class="properties">
<tbody>
<tr>
<th scope="row">Header type</th>
<td>Response header</td>
</tr>
</tbody>
</table>

## Syntax

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

### Directives

- `same-site`
- : Resources can only be loaded from the same site.

- `same-origin`
- : Resources can only be loaded from the same origin.

- `cross-origin`
- : Resources can be loaded by any other origin/website.

## 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:

```http
Cross-Origin-Resource-Policy: same-origin
```

## Specifications

## Browser compatibility

## See also

- [Cross-Origin Resource Policy (CORP) explainer](/docs/Web/Security/Practical_implementation_guides/CORP)
- [Consider deploying Cross-Origin Resource Policy](https://resourcepolicy.fyi/)
- Cross-Origin-Embedder-Policy
- Access-Control-Allow-Origin

source: MDN Web Docs mirror · page

Cite this

"Cross-Origin-Resource-Policy (CORP) header". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cross-Origin-Resource-Policy

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·