aws-cdk-lib.aws_cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty

interface AccessControlAllowHeadersProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnResponseHeadersPolicy_AccessControlAllowHeadersProperty
Javasoftware.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty
Pythonaws_cdk.aws_cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty
TypeScript aws-cdk-lib » aws_cloudfront » CfnResponseHeadersPolicy » AccessControlAllowHeadersProperty

A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header.

For more information about the Access-Control-Allow-Headers HTTP response header, see Access-Control-Allow-Headers 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 accessControlAllowHeadersProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty = {
  items: ['items'],
};

Properties

NameTypeDescription
itemsstring[]The list of HTTP header names.

items

Type: string[]

The list of HTTP header names.

You can specify * to allow all headers.