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.
Inheritance
System.Object
CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AccessControlAllowOriginsProperty : Object, CfnResponseHeadersPolicy.IAccessControlAllowOriginsProperty
Syntax (vb)
Public Class AccessControlAllowOriginsProperty
Inherits Object
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() |
Properties
Items | The list of origins (domain names). |
Constructors
AccessControlAllowOriginsProperty()
public AccessControlAllowOriginsProperty()
Properties
Items
The list of origins (domain names).
public string[] Items { get; set; }
Property Value
System.String[]