CorsRule class
A rule for a CORS policy. You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed.
Constructors
Properties
- 
  allowedHeaders
  → List<
String>  - 
  Specifies which headers are allowed in a preflight 
OPTIONSrequest through theAccess-Control-Request-Headersheader. Each header name that is specified inAccess-Control-Request-Headersmust have a corresponding entry in the rule. Only the headers that were requested are sent back.final - 
  allowedMethods
  → List<
MethodName> ? - 
  Identifies an HTTP method that the origin that is specified in the rule is
allowed to execute.
  final
 - 
  allowedOrigins
  → List<
String>  - 
  One or more response headers that you want users to be able to access from
their applications (for example, from a JavaScript
XMLHttpRequestobject).final - 
  exposeHeaders
  → List<
String> ? - 
  One or more headers in the response that you want users to be able to access
from their applications (for example, from a JavaScript
XMLHttpRequestobject).final - hashCode → int
 - 
  The hash code for this object.
  no setterinherited
 - maxAgeSeconds → int?
 - 
  The time in seconds that your browser caches the preflight response for the
specified resource.
  final
 - runtimeType → Type
 - 
  A representation of the runtime type of the object.
  no setterinherited
 
Methods
- 
  noSuchMethod(
Invocation invocation) → dynamic  - 
  Invoked when a nonexistent method or property is accessed.
  inherited
 - 
  toJson(
) → Map< String, dynamic>  - 
  toString(
) → String  - 
  A string representation of this object.
  inherited
 
Operators
- 
  operator ==(
Object other) → bool  - 
  The equality operator.
  inherited