interface AccessControlAllowOriginsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowOriginsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnResponseHeadersPolicyPropsMixin_AccessControlAllowOriginsProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowOriginsProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowOriginsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnResponseHeadersPolicyPropsMixin » 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 { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const accessControlAllowOriginsProperty: cloudfront_mixins.CfnResponseHeadersPolicyPropsMixin.AccessControlAllowOriginsProperty = {
items: ['items'],
};
Properties
| Name | Type | Description |
|---|---|---|
| items? | string[] | The list of origins (domain names). |
items?
Type:
string[]
(optional)
The list of origins (domain names).
You can specify * to allow all origins.

.NET
Go
Java
Python
TypeScript