Cross-Origin Resource Sharing (CORS) configuration
Regex pattern for validating supported HTTP methods
Validates the HTTP method used in CORS configuration
Throws an error if the method is not supported
Enables or disables CORS support (default: false)
List of allowed origin domains for CORS requests (e.g., "https://example.com")
If unset, no origins are allowed unless CORS is disabled
List of HTTP methods allowed for CORS requests, validated by regex
If unset, defaults to methods specified in the route configuration
List of request headers allowed in CORS requests (e.g., "Content-Type")
If unset, no additional headers are allowed
List of response headers exposed to clients in CORS requests
If unset, no headers are exposed beyond defaults
Allows credentials (e.g., cookies, HTTP authentication) in CORS requests (default: true)
Maximum duration (in hours) for which CORS preflight responses can be cached (default: 12 hours)
Returns the class of this.
this
Returns a string representation of this.
This method is used to convert the values of string interpolation expressions to strings.
Returns this |> transform if this is non-null, and null otherwise.
this |> transform
null
This method is the complement of the ?? operator and the equivalent of an Option type's map and flatMap methods.
??
Option
map
flatMap
Tells if this object has a property with the given name.
name
Returns the value of the property with the given name.
Throws if a property with this name does not exist.
Returns null if a property with this name does not exist.
Converts this object to a Dynamic object.
Dynamic
Converts this object to a Map.
Map
Cross-Origin Resource Sharing (CORS) configuration