Expand description
CORS handling utility functions
Structs§
Enums§
- Access
Control Allow Headers - Headers allowed to access
- Access
Control Allow Origin - Origins allowed to access
- Allow
Cors - CORS response headers
- Origin
Protocol - Origin Protocol
Functions§
- get_
cors_ allow_ headers - Validates if the
AccessControlAllowedHeaders
in the request are allowed. - get_
cors_ allow_ origin - Returns correct CORS header (if any) given list of allowed origins and current origin.