Interface CfnResponseHeadersPolicyPropsMixin.IContentSecurityPolicyProperty
The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
Namespace: Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public interface CfnResponseHeadersPolicyPropsMixin.IContentSecurityPolicyProperty
Syntax (vb)
Public Interface CfnResponseHeadersPolicyPropsMixin.IContentSecurityPolicyProperty
Remarks
For more information about the Content-Security-Policy HTTP response header, see Content-Security-Policy in the MDN Web Docs.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins;
var contentSecurityPolicyProperty = new ContentSecurityPolicyProperty {
ContentSecurityPolicy = "contentSecurityPolicy",
Override = false
};
Synopsis
Properties
| ContentSecurityPolicy | The policy directives and their values that CloudFront includes as values for the |
| Override | A Boolean that determines whether CloudFront overrides the |
Properties
ContentSecurityPolicy
The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
string? ContentSecurityPolicy { get; }
Property Value
Remarks
Override
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.
object? Override { get; }