Skip to content
Download

allowAnyHeader

mach::CorsBuilder::allowAnyHeader

Allows any header.

Allows requests using any HTTP header.

CorsBuilder& allowAnyHeader();

A reference to the current CorsBuilder instance.

Calling this method overrides any headers configured using allowHeader() or allowHeaders().

This method is not thread-safe and should only be called during CORS configuration.

cors.allowAnyHeader();
Name Description
allowHeader Allows the specified header.
allowHeaders Allows multiple headers.