Skip to content

Commit 4c7f28c

Browse files
committed
🚑 Update CORS configuration to allow all HTTP methods
1 parent ee0c5b6 commit 4c7f28c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ async function loadServer(server: NestFastifyApplication){
3131
server.setGlobalPrefix(process.env.PREFIX || "");
3232
server.enableCors({
3333
origin: "*",
34+
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
3435
});
3536

3637
// Middlewares

0 commit comments

Comments
 (0)