Class CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty
Determines whether CloudFront includes the X-Frame-Options HTTP response header and the header's value.
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.CloudFront
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty : CfnResponseHeadersPolicyPropsMixin.IFrameOptionsProperty
Syntax (vb)
Public Class CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty Implements CfnResponseHeadersPolicyPropsMixin.IFrameOptionsProperty
Remarks
For more information about the X-Frame-Options HTTP response header, see X-Frame-Options 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.CfnPropertyMixins.AWS.CloudFront;
var frameOptionsProperty = new FrameOptionsProperty {
FrameOption = "frameOption",
Override = false
};
Synopsis
Constructors
| FrameOptionsProperty() | Determines whether CloudFront includes the |
Properties
| FrameOption | The value of the |
| Override | A Boolean that determines whether CloudFront overrides the |
Constructors
FrameOptionsProperty()
Determines whether CloudFront includes the X-Frame-Options HTTP response header and the header's value.
public FrameOptionsProperty()
Remarks
For more information about the X-Frame-Options HTTP response header, see X-Frame-Options 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.CfnPropertyMixins.AWS.CloudFront;
var frameOptionsProperty = new FrameOptionsProperty {
FrameOption = "frameOption",
Override = false
};
Properties
FrameOption
The value of the X-Frame-Options HTTP response header. Valid values are DENY and SAMEORIGIN .
public string? FrameOption { get; set; }
Property Value
Remarks
For more information about these values, see X-Frame-Options in the MDN Web Docs.
Override
A Boolean that determines whether CloudFront overrides the X-Frame-Options HTTP response header received from the origin with the one specified in this response headers policy.
public object? Override { get; set; }