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