Change Content Security Policy

Hi, I would need to change my Content Security Policy from “upgrade-insecure-requests” to “block-all-mixed-content”.

Does anyone know how i could do it?
Thanks

Use Transform Rules to set the response header.

2 Likes

Thanks, may you tell me how to do it please?

https://developers.cloudflare.com/rules/transform/response-header-modification/create-dashboard

1 Like

Hi thanks, I see I can use that page for editing rules but I don’t know how to use it.
May you help in the procedure please?

In your zone, create a Transform Rule of the type ‘HTTP Response Header Modification’ that is similar to the below. Feel free to change the ‘when incoming requests match…’ to whatever makes most sense for your setup.

2 Likes

thank you very much, I will try to apply and let you know.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.