Crate salvo_cors

Crate salvo_cors 

Source
Expand description

Library adds CORS protection for Salvo web framework.

§Docs

Find the docs here: https://salvo.rs/book/features/cors.html

Structs§

AllowCredentials
Holds configuration for how to set the Access-Control-Allow-Credentials header.
AllowHeaders
Holds configuration for how to set the Access-Control-Allow-Headers header.
AllowMethods
Holds configuration for how to set the Access-Control-Allow-Methods header.
AllowOrigin
Holds configuration for how to set the Access-Control-Allow-Origin header.
AllowPrivateNetwork
Holds configuration for how to set the Access-Control-Allow-Private-Network header.
Any
Represents a wildcard value (*) used with some CORS headers such as Cors::allow_methods.
Cors
Cors middleware which adds headers for CORS.
CorsHandler
CorsHandler
ExposeHeaders
Holds configuration for how to set the Access-Control-Expose-Headers header.
MaxAge
Holds configuration for how to set the Access-Control-Max-Age header.
Vary
Holds configuration for how to set the Vary header.

Enums§

CallNext
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.