webzod
account

Enforce the report-only Content-Security-Policy on Shopify

headers.csp.report_only · effort: about an hour

Why it matters

A report-only policy reports violations but blocks nothing, so it gives no protection yet. Once its reports are clean, send the same policy as Content-Security-Policy.

Staged change. Do this in stages and check each one before the next, so a mistake does not break your site or your mail.

The fix

Not possible on Shopify. Shopify controls the storefront's response headers, so a report-only policy sent by the platform cannot be switched to enforcing from the store.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.