Skip to main content

cors_permissive

Function cors_permissive 

Source
pub fn cors_permissive() -> CorsLayer
Expand description

A permissive CORS layer (any origin, method, and header).

Convenient for local development; prefer cors_allowing in production so credentialed requests and a known origin allow-list are handled correctly. Requires the cors feature.