add OPTIONS
test-org/trust-module-backend/pipeline/pr-rc This commit looks good
Details
test-org/trust-module-backend/pipeline/pr-rc This commit looks good
Details
parent
b8b55951e8
commit
c02a6fdbe1
|
|
@ -9,8 +9,7 @@ async function bootstrap() {
|
|||
|
||||
app.enableCors({
|
||||
origin: '*',
|
||||
//methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
|
||||
methods: '*',
|
||||
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS',
|
||||
allowedHeaders: 'Content-Type, Authorization',
|
||||
});
|
||||
await app.listen(process.env.PORT ?? 3000);
|
||||
|
|
|
|||
Loading…
Reference in New Issue