interface AccessControlAllowOriginsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudFront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnResponseHeadersPolicy_AccessControlAllowOriginsProperty |
Java | software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty |
Python | aws_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
| 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.

.NET
Go
Java
Python
TypeScript