Skip to content

Commit 0a6d83e

Browse files
n3rdc4ptnCopilot
andauthored
fix: add put to cors methods
Co-authored-by: Copilot <[email protected]>
1 parent 302b288 commit 0a6d83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fastify.register(cors, {
8484
callback(new Error(`Origin ${origin} not allowed by CORS policy`), false);
8585
}
8686
},
87-
methods: ['GET', 'HEAD', 'POST', 'PATCH', 'DELETE'],
87+
methods: ['GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE'],
8888
credentials: true, // Required for cookie-based sessions
8989
});
9090

0 commit comments

Comments
 (0)