GoogleApi.NetworkServices.V1.Model.HttpRouteCorsPolicy (google_api_network_services v0.11.0)
View SourceThe Specification for allowing client side cross-origin requests.
Attributes
-
allowCredentials
(type:boolean()
, default:nil
) - 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. Default value is false. -
allowHeaders
(type:list(String.t)
, default:nil
) - Specifies the content for Access-Control-Allow-Headers header. -
allowMethods
(type:list(String.t)
, default:nil
) - Specifies the content for Access-Control-Allow-Methods header. -
allowOriginRegexes
(type:list(String.t)
, default:nil
) - Specifies the regular expression patterns that match allowed origins. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax. -
allowOrigins
(type:list(String.t)
, default:nil
) - Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allow_origins or an item in allow_origin_regexes. -
disabled
(type:boolean()
, default:nil
) - If true, the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect. -
exposeHeaders
(type:list(String.t)
, default:nil
) - Specifies the content for Access-Control-Expose-Headers header. -
maxAge
(type:String.t
, default:nil
) - Specifies how long result of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.NetworkServices.V1.Model.HttpRouteCorsPolicy{ allowCredentials: boolean() | nil, allowHeaders: [String.t()] | nil, allowMethods: [String.t()] | nil, allowOriginRegexes: [String.t()] | nil, allowOrigins: [String.t()] | nil, disabled: boolean() | nil, exposeHeaders: [String.t()] | nil, maxAge: String.t() | nil }