cop
Summary
Creates middleware that rejects unsafe cross-origin requests.
Signature
function cop(options: CopOptions): Middleware;
Params
options
Cross-origin protection options.
Returns
Middleware that validates request origin headers.
Creates middleware that rejects unsafe cross-origin requests.
function cop(options: CopOptions): Middleware;
Cross-origin protection options.
Middleware that validates request origin headers.