URLMapPathMatcherRouteRuleRouteActionCorsPolicy constructor
Creates a new URLMapPathMatcherRouteRuleRouteActionCorsPolicy.
allowCredentials In response to a preflight request, setting this to true indicates that the actual request can include user credentials.
allowHeaders Specifies the content for the Access-Control-Allow-Headers header.
allowMethods Specifies the content for the Access-Control-Allow-Methods header.
allowOriginRegexes Specifies the regular expression patterns that match allowed origins. For regular expression grammar
allowOrigins Specifies the list of origins that will be allowed to do CORS requests.
disabled If true, specifies the CORS policy is disabled. The default value is 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.
Implementation
const URLMapPathMatcherRouteRuleRouteActionCorsPolicy({
this.allowCredentials,
this.allowHeaders,
this.allowMethods,
this.allowOriginRegexes,
this.allowOrigins,
this.disabled,
this.exposeHeaders,
this.maxAge,
});