aws-cdk-lib.aws_cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty

interface FrameOptionsProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnResponseHeadersPolicy.FrameOptionsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnResponseHeadersPolicy_FrameOptionsProperty
Javasoftware.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty
Pythonaws_cdk.aws_cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty
TypeScript aws-cdk-lib » aws_cloudfront » CfnResponseHeadersPolicy » 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 { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const frameOptionsProperty: cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty = {
  frameOption: 'frameOption',
  override: false,
};

Properties

NameTypeDescription
frameOptionstringThe value of the X-Frame-Options HTTP response header. Valid values are DENY and SAMEORIGIN .
overrideboolean | IResolvableA 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

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

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.