Skip to content
FixSecurityHeadersScan a site

Cross-Origin-Resource-Policy explained

Last updated · Reviewed by a CISSP-certified security practitioner

Cross-Origin-Resource-Policy: CORP tells browsers which origins may embed your images, scripts and other resources. Recommended value: same-origin.

What risk does it prevent?

Other sites can embed your resources and use side channels to leak data.

What is the safe recommended value?

Cross-Origin-Resource-Policy: same-origin

What are the gotchas?

  • Public CDNs and assets meant for embedding should use cross-origin.

Which compliance controls reference it?

  • OWASP ASVS V14.4

How do I add it on my stack?

Check your site now

Free scan, instant grade, exact fixes for your stack.

Other security headers