allowAnyOrigin
mach::CorsBuilder::allowAnyOrigin
Allows requests from any origin.
Description
Section titled “Description”Allows requests originating from any origin.
Syntax
Section titled “Syntax”CorsBuilder& allowAnyOrigin();Return Value
Section titled “Return Value”A reference to the current CorsBuilder instance.
Remarks
Section titled “Remarks”Calling this method overrides any origins configured using allowOrigin() or allowOrigins().
Thread Safety
Section titled “Thread Safety”This method is not thread-safe and should only be called during CORS configuration.
Example
Section titled “Example”cors.allowAnyOrigin();See Also
Section titled “See Also”| Name | Description |
|---|---|
allowOrigin |
Allows the specified origin. |
allowOrigins |
Allows multiple origins. |