Skip to content
Download

allowAnyOrigin

mach::CorsBuilder::allowAnyOrigin

Allows requests from any origin.

Allows requests originating from any origin.

CorsBuilder& allowAnyOrigin();

A reference to the current CorsBuilder instance.

Calling this method overrides any origins configured using allowOrigin() or allowOrigins().

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

cors.allowAnyOrigin();
Name Description
allowOrigin Allows the specified origin.
allowOrigins Allows multiple origins.