#Did anyone implemented dynamic CORS configuration ?

1 messages · Page 1 of 1 (latest)

wind sage
#
{
  "origin": "your-custom-domain.com",
  "methods": "GET,HEAD,PUT,PATCH,POST,DELETE",
  "preflightContinue": false,
  "optionsSuccessStatus": 204
}

You should pass either a boolean or a configuration object as documented in the official nestjs docs:
https://docs.nestjs.com/security/cors

fickle grove
#

so there is no way to do a dynamic setup ?

wind sage
#

How do you want it to be dynamic?