FrameOptionsProperty Struct
Determines whether CloudFront includes the X-Frame-Options HTTP response header and the header's value.
For more information about the X-Frame-Options HTTP response header, see X-Frame-Options in the MDN Web Docs.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const frameOptionsProperty: cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty = {
frameOption: 'frameOption',
override: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront
frame_options_property = cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty(
frame_option="frameOption",
override=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
FrameOptionsProperty frameOptionsProperty = FrameOptionsProperty.builder()
.frameOption("frameOption")
.override(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var frameOptionsProperty = new FrameOptionsProperty {
FrameOption = "frameOption",
Override = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
frameOptionsProperty := &FrameOptionsProperty{
FrameOption: jsii.String("frameOption"),
Override: jsii.Boolean(false),
}
Properties
The value of the `X-Frame-Options` HTTP response header. Valid values are `DENY` and `SAMEORIGIN` .
For more information about these values, see X-Frame-Options in the MDN Web Docs.
overrideboolean | IResolvableoverridetyping.Union[bool, IResolvable]overrideBooleanOverrideboolOverrideinterface{} required #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.