Skip to content
Skip to content
← All HTTP Headers
Security

Cross-Origin-Resource-Policy

Restricts which origins can load a resource, preventing unauthorized cross-origin reads.

Syntax

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

Example

Cross-Origin-Resource-Policy: same-origin

Description

Cross-Origin-Resource-Policy (CORP) tells the browser which origins can include the resource. Prevents cross-origin data leaks.

Values: same-site, same-origin, cross-origin.

Important for resources with sensitive data — without it, any website could embed your resources and extract information via side-channel attacks.

Check if your website sends this header correctly

Check your headers →

Related Articles

Related Headers