aws-cdk-lib.aws_cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty

interface AccessControlAllowOriginsProperty

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

A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.

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

Properties

NameTypeDescription
itemsstring[]The list of origins (domain names).

items

Type: string[]

The list of origins (domain names).

You can specify * to allow all origins.