FunctionUrlCors class

Constructors

FunctionUrlCors({Input<bool?>? allowCredentials, Input<List<String>?>? allowHeaders, Input<List<String>?>? allowMethods, Input<List<String>?>? allowOrigins, Input<List<String>?>? exposeHeaders, Input<int?>? maxAge})
Creates a new FunctionUrlCors. allowCredentials Whether to allow cookies or other credentials in requests to the function URL. allowHeaders HTTP headers that origins can include in requests to the function URL. allowMethods HTTP methods that are allowed when calling the function URL. allowOrigins Origins that can access the function URL. exposeHeaders HTTP headers in your function response that you want to expose to origins that call the function URL. maxAge Maximum amount of time, in seconds, that web browsers can cache results of a preflight request. Maximum value is 86400.
const
FunctionUrlCors.fromMap(Map<String, dynamic> map)
factory

Properties

allowCredentials → Input<bool?>?
Whether to allow cookies or other credentials in requests to the function URL.
final
allowHeaders → Input<List<String>?>?
HTTP headers that origins can include in requests to the function URL.
final
allowMethods → Input<List<String>?>?
HTTP methods that are allowed when calling the function URL.
final
allowOrigins → Input<List<String>?>?
Origins that can access the function URL.
final
exposeHeaders → Input<List<String>?>?
HTTP headers in your function response that you want to expose to origins that call the function URL.
final
hashCode int
The hash code for this object.
no setterinherited
maxAge → Input<int?>?
Maximum amount of time, in seconds, that web browsers can cache results of a preflight request. Maximum value is 86400.
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
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited