Expand description
Library adds CORS protection for Salvo web framework.
§Docs
Find the docs here: https://salvo.rs/book/features/cors.html
Structs§
- Allow
Credentials - Holds configuration for how to set the
Access-Control-Allow-Credentialsheader. - Allow
Headers - Holds configuration for how to set the
Access-Control-Allow-Headersheader. - Allow
Methods - Holds configuration for how to set the
Access-Control-Allow-Methodsheader. - Allow
Origin - Holds configuration for how to set the
Access-Control-Allow-Originheader. - Allow
Private Network - Holds configuration for how to set the
Access-Control-Allow-Private-Networkheader. - Any
- Represents a wildcard value (
*) used with some CORS headers such asCors::allow_methods. - Cors
Corsmiddleware which adds headers for CORS.- Cors
Handler - CorsHandler
- Expose
Headers - Holds configuration for how to set the
Access-Control-Expose-Headersheader. - MaxAge
- Holds configuration for how to set the
Access-Control-Max-Ageheader. - Vary
- Holds configuration for how to set the
Varyheader.
Enums§
- Call
Next - Enum to control when to call next handler.
Functions§
- preflight_
request_ headers - Iterator over the three request headers that may be involved in a CORS preflight request.