Skip to content

Commit 5d401ae

Browse files
committed
fix(cors): add OPTIONS and PATCH to allowed methods
1 parent 6039abb commit 5d401ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function bootstrap() {
1616
SwaggerModule.setup('api', app, document);
1717
app.enableCors({
1818
origin: '*',
19-
methods: 'GET, PUT, POST, DELETE',
19+
methods: 'GET, PUT, POST, DELETE, PATCH, OPTIONS',
2020
allowedHeaders: 'Content-Type, Authorization',
2121
});
2222
await app.listen(3000);

0 commit comments

Comments
 (0)