Skip to main content

Module cors

Module cors 

Source
Expand description

Cross-origin resource sharing (specification section 8).

Structs§

CorsPolicy
A cross-origin policy.

Constants§

DEFAULT_ALLOWED_HEADERS
Headers a browser must be allowed to send to negotiate Links Notation.
DEFAULT_EXPOSED_HEADERS
Headers a browser must be allowed to read to follow the protocol.
DEFAULT_METHODS
Methods a browser may use unless the policy narrows them.

Functions§

cors_headers
Build the CORS response headers for a request.