Skip to content

CloudFront  >  Structures  >  ResponseHeadersPolicyContentSecurityPolicy

ResponseHeadersPolicyContentSecurityPolicy

Structure Class

ResponseHeadersPolicyContentSecurityPolicy dataclass

Bases: _SerdeShape

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

For more information about the Content-Security-Policy HTTP response header, see Content-Security-Policy in the MDN Web Docs.

Attributes

content_security_policy instance-attribute
content_security_policy: str

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

override instance-attribute
override: bool

A Boolean that determines whether CloudFront overrides the Content-Security-Policy HTTP response header received from the origin with the one specified in this response headers policy.