Skip to content

Commit

Permalink
Update content-security-policies.mdx (#17677)
Browse files Browse the repository at this point in the history
Rules can't modify CSP header, only add/replace or remove
  • Loading branch information
chris-martinelli authored Oct 21, 2024
1 parent 4862d8f commit de8de8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Cloudflare does not:

If you require the CSP headers to be changed or added, you can change them using some Cloudflare products:

- If your website is [proxied](/dns/manage-dns-records/reference/proxied-dns-records/) through Cloudflare, you can use a [Response Header Modification rule](/rules/transform/response-header-modification/) to modify or add CSP headers.
- If your website is [proxied](/dns/manage-dns-records/reference/proxied-dns-records/) through Cloudflare, you can use a [Response Header Modification rule](/rules/transform/response-header-modification/) to replace or add CSP headers.
- If your website is hosted using [Cloudflare Pages](/pages/), you can set a [`_headers file`](/pages/configuration/headers/) to modify or add CSP headers.

### Product requirements
Expand Down

0 comments on commit de8de8e

Please sign in to comment.