Variable RESPONSE_HEADERS_DEFAULTConst

RESPONSE_HEADERS_DEFAULT: {
    Access-Control-Allow-Credentials: string;
    Access-Control-Allow-Headers: string;
    Access-Control-Allow-Methods: string;
    Access-Control-Allow-Origin: string;
    content-type: string;
} = ...

Default headers applied to every response built by res. Enables permissive CORS and a JSON content type.

Type declaration

  • Access-Control-Allow-Credentials: string
  • Access-Control-Allow-Headers: string
  • Access-Control-Allow-Methods: string
  • Access-Control-Allow-Origin: string
  • content-type: string

Generated using TypeDoc