cors

View Source

Summary

Middleware that adds CORS headers and handles CORS preflight requests.

Signature

function cors(options: CorsOptions): Middleware;

Params

options

CORS options

Returns

CORS middleware