Class CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty
A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty : CfnResponseHeadersPolicy.IAccessControlAllowOriginsProperty
Syntax (vb)
Public Class CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty Implements CfnResponseHeadersPolicy.IAccessControlAllowOriginsProperty
Remarks
For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var accessControlAllowOriginsProperty = new AccessControlAllowOriginsProperty {
Items = new [] { "items" }
};
Synopsis
Constructors
| AccessControlAllowOriginsProperty() | A list of origins (domain names) that CloudFront can use as the value for the |
Properties
| Items | The list of origins (domain names). |
Constructors
AccessControlAllowOriginsProperty()
A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.
public AccessControlAllowOriginsProperty()
Remarks
For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var accessControlAllowOriginsProperty = new AccessControlAllowOriginsProperty {
Items = new [] { "items" }
};
Properties
Items
The list of origins (domain names).
public string[] Items { get; set; }
Property Value
string[]