Skip to main content

cors

Function cors 

Source
pub fn cors() -> CorsLayer
Expand description

Returns a CORS layer with permissive defaults suitable for development.

Allows any origin, common HTTP methods, and typical headers.