interface AccessControlAllowOriginsProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty |
![]() | software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty |
![]() | aws_cdk.aws_cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty |
![]() | @aws-cdk/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 * as cloudfront from '@aws-cdk/aws-cloudfront';
const accessControlAllowOriginsProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty = {
items: ['items'],
};
Properties
Name | Type | Description |
---|---|---|
items | string[] | The list of origins (domain names). |
items
Type:
string[]
The list of origins (domain names).
You can specify *
to allow all origins.