Set content security policy

Adds or overrides the Content-Security-Policy response header. Supports Report only mode, importing directives, or adding specific ones like Base URI.

This action adds or overrides the Content-Security-Policy response header for a matching response.

Configuration

  • Report only: When enabled, the policy is applied in report-only mode. The directives are written to the Content-Security-Policy-Report-Only response header instead of Content-Security-Policy.
  • Add directive: Adds a single Content Security Policy directive and its values. The available directives are Base URI, Block all mixed content, Child source, Connect source, Default source, Font source, Frame source, Form action, Frame ancestors, Image source, Media source, Object source, Sandbox, Script source, Style source, Upgrade insecure requests, and Worker source.
  • Import directives: Imports a set of directives from an existing policy.

Behavior

When the conditions of the web control are met, the proxy sets the configured directives on the Content-Security-Policy response header, or on the Content-Security-Policy-Report-Only header when Report only is enabled. The value of each directive is usually a list of source expressions, though a few directives take a boolean.

Have questions not answered here? Contact Support to get more help.

Last modified on November 18, 2026