RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy class
Constructors
-
RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy({Input<bool?>? allowCredentials, Input<List<String>?>? allowMethods, Input<List<String>?>? allowOriginRegexes, Input<List<String>?>? allowOrigins, Input<bool?>? disabled, Input<int?>? maxAge})
-
Creates a new RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy.
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.
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 regualar 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, 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.
const
-
RegionUrlMapPathMatcherDefaultRouteActionCorsPolicy.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
allowCredentials
→ Input<bool?>?
-
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.
final
-
Specifies the content for the Access-Control-Allow-Headers header.
final
-
allowMethods
→ Input<List<String>?>?
-
Specifies the content for the Access-Control-Allow-Methods header.
final
-
allowOriginRegexes
→ Input<List<String>?>?
-
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 an item in allowOrigins or an item in allowOriginRegexes.
final
-
allowOrigins
→ Input<List<String>?>?
-
Specifies the list of origins that will be allowed to do CORS requests.
An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
final
-
disabled
→ Input<bool?>?
-
If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
final
-
Specifies the content for the Access-Control-Expose-Headers header.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
maxAge
→ Input<int?>?
-
Specifies how long results of a preflight request can be cached in seconds.
This translates to the Access-Control-Max-Age header.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited