Class CorsConfig

Properties

enabled: boolean = ...

Enable the cors middleware.

false

CORS_ENABLED

headers: string = ...

The headers to allow.

'Origin,X-Requested-With,Content-Type,Accept,Authorization'

CORS_HEADERS

methods: string = ...

The methods to allow.

'GET,HEAD,PUT,PATCH,POST,DELETE'

CORS_METHODS

origin: string = ...

The origin(s) to allow.

'*'

CORS_ORIGIN