CorsPolicyComputeBeta constructor
Creates a new CorsPolicyComputeBeta.
allowCredentials In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
allowHeaders Specifies the content for the Access-Control-Allow-Headers header.
allowMethods Specifies the content for the Access-Control-Allow-Methods header.
allowOriginRegexes Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
allowOrigins Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
disabled If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
exposeHeaders Specifies the content for the Access-Control-Expose-Headers header.
maxAge Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header.
Implementation
const CorsPolicyComputeBeta({
this.allowCredentials,
this.allowHeaders,
this.allowMethods,
this.allowOriginRegexes,
this.allowOrigins,
this.disabled,
this.exposeHeaders,
this.maxAge,
});