#Did anyone implemented dynamic CORS configuration ?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
{
"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
so there is no way to do a dynamic setup ?
How do you want it to be dynamic?