NestApplicationOptions


interface NestApplicationOptions extends NestApplicationContextOptions {
  cors?: boolean | CorsOptions | CorsOptionsDelegate<any>
  bodyParser?: boolean
  httpsOptions?: HttpsOptions
  rawBody?: boolean
  forceCloseConnections?: boolean
}

Properties

Property Description
cors?: boolean | CorsOptions | CorsOptionsDelegate<any>

CORS options from CORS package

bodyParser?: boolean

Whether to use underlying platform body parser.

httpsOptions?: HttpsOptions

Set of configurable HTTPS options

rawBody?: boolean

Whether to register the raw request body on the request. Use req.rawBody.

forceCloseConnections?: boolean

Force close open HTTP connections. Useful if restarting your application hangs due to keep-alive connections in the HTTP adapter.