跳转到主要内容

Client-side security FAQ

import { Render } from "~/components";

What happens to CSP HTTP headers set by the origin server when I create a content security rule?

Client-side security only adds new CSP HTTP headers to the response. This means that Cloudflare will keep any Content-Security-Policy-Report-Only and Content-Security-Policy HTTP headers in the response set by the origin server and it will add separate HTTP headers for the content security rules configured on your Cloudflare zone.

Can I add a nonce CSP directive to a content security rule?

Client-side security currently does not support nonce directives in content security rules. Instead, you can use a hash CSP directive. For details on the supported directives and values, refer to Supported CSP directives.