Skip to content
Download

allowAnyMethod

mach::CorsBuilder::allowAnyMethod

Allows any method.

Allows requests using any HTTP method.

CorsBuilder& allowAnyMethod();

A reference to the current CorsBuilder instance.

Calling this method overrides any methods configured using allowMethod() or allowMethods().

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

cors.allowAnyMethod();
Name Description
allowMethod Allows the specified method.
allowMethods Allows multiple methods.