webzod
account

Fix the Content-Security-Policy syntax on Shopify

headers.csp.invalid · effort: minutes

Why it matters

Browsers skip directives they do not know and read unquoted keywords as host names, so parts of the policy silently do nothing. The finding's details list what was ignored.

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 sets the storefront's response headers. If the ignored directives come from a meta tag in your theme, fix them in layout/theme.liquid; otherwise the store cannot change them.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.