Class RegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicyArgs
Inheritance
Inherited Members
Namespace: Pulumi.Gcp.Compute.Inputs
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class RegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicyArgs : ResourceArgs
Constructors
View SourceRegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicyArgs()
Declaration
public RegionUrlMapPathMatcherRouteRuleRouteActionCorsPolicyArgs()
Properties
View SourceAllowCredentials
In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access- Control-Allow-Credentials header. Defaults to false.
Declaration
public Input<bool> AllowCredentials { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
AllowHeaders
Specifies the content for the Access-Control-Allow-Headers header.
Declaration
public InputList<string> AllowHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
AllowMethods
Specifies the content for the Access-Control-Allow-Methods header.
Declaration
public InputList<string> AllowMethods { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
AllowOriginRegexes
Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either allow_origins or allow_origin_regex.
Declaration
public InputList<string> AllowOriginRegexes { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
AllowOrigins
Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either allow_origins or allow_origin_regex.
Declaration
public InputList<string> AllowOrigins { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Disabled
If true, specifies the CORS policy is disabled.
Declaration
public Input<bool> Disabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
ExposeHeaders
Specifies the content for the Access-Control-Expose-Headers header.
Declaration
public InputList<string> ExposeHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
MaxAge
Specifies how long the results of a preflight request can be cached. This translates to the content for the Access-Control-Max-Age header.
Declaration
public Input<int> MaxAge { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |