Header Security
Cross-Origin-Resource-Policy Header Check
The Cross-Origin-Resource-Policy header controls which origins can access your resources. Learn how to configure it to enhance your site security.
What this test checks
This test checks the presence and configuration of the Cross-Origin-Resource-Policy header. This header allows you to control which origins can access your resources (images, scripts, styles). A misconfiguration can expose your resources to malicious sites.
Our recommendation
Add the Cross-Origin-Resource-Policy header with the value 'same-origin' to limit resource access to your own domain. Use 'same-site' to allow subdomains. Test your configuration to avoid blocking legitimate features.
Security tests