interface FrameOptionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnResponseHeadersPolicyPropsMixin_FrameOptionsProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnResponseHeadersPolicyPropsMixin » FrameOptionsProperty |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const frameOptionsProperty: cloudfront_mixins.CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty = {
frameOption: 'frameOption',
override: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| frame | string | The value of the X-Frame-Options HTTP response header. Valid values are DENY and SAMEORIGIN . |
| override? | boolean | IResolvable | 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. |
frameOption?
Type:
string
(optional)
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.
override?
Type:
boolean | IResolvable
(optional)
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.

.NET
Go
Java
Python
TypeScript