allowAnyMethod
mach::CorsBuilder::allowAnyMethod
Allows any method.
Description
Section titled “Description”Allows requests using any HTTP method.
Syntax
Section titled “Syntax”CorsBuilder& allowAnyMethod();Return Value
Section titled “Return Value”A reference to the current CorsBuilder instance.
Remarks
Section titled “Remarks”Calling this method overrides any methods configured using allowMethod() or allowMethods().
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.allowAnyMethod();See Also
Section titled “See Also”| Name | Description |
|---|---|
allowMethod |
Allows the specified method. |
allowMethods |
Allows multiple methods. |