Skip to main content

Module cors

Module cors 

Source
Expand description

CORS plugin (cors).

Adds Access-Control-* response headers for allowed origins and short-circuits OPTIONS preflight requests with a 204 response. Never errors: disallowed origins simply pass through without CORS headers.

Structs§

CorsPlugin
Applies CORS response headers based on the request’s Origin header.