@Stability(value=Stable)
public static interface CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.cloudfront.*;
AccessControlAllowOriginsProperty accessControlAllowOriginsProperty = AccessControlAllowOriginsProperty.builder()
.items(List.of("items"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.Builder
|
static class |
CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.Jsii$Proxy
An implementation for
CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.Builder |
builder() |
List<String> |
getItems()
The list of origins (domain names).
|
@Stability(value=Stable) @NotNull List<String> getItems()
You can specify * to allow all origins.
@Stability(value=Stable) static CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.Builder builder()
Copyright © 2022. All rights reserved.