Header Security
Shopify Content-Security-Policy Header Check
The Content-Security-Policy (CSP) header is essential to prevent XSS attacks on your Shopify store. Check its configuration and enhance your security.
What this test checks
This test checks the presence and configuration of the Content-Security-Policy (CSP) header on your Shopify store. This header allows you to control allowed content sources, limiting the risk of malicious script injection (XSS) and unauthorised resource loading.
Our recommendation
Add or strengthen your CSP policy with restrictive directives. Use 'default-src self' as a base and add necessary sources for your scripts, styles, and images. Test your policy in 'report-only' mode before applying it in production.
Security tests