Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
fix: add missing HTTP method to CORS config
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnygerard committed Nov 12, 2024
1 parent cc660d8 commit 6cca924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/middleware/cors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default cors({
allowedHeaders: ["Content-Type", CSRF_HEADER],
exposedHeaders: rateLimitingHeaders,
maxAge: ms("1 hour") / 1000,
methods: ["GET", "POST", "DELETE"],
methods: ["GET", "POST", "PUT", "DELETE"],
optionsSuccessStatus: NO_CONTENT,
origin: "https://mean-authentication.app.jgerard.dev",
preflightContinue: false,
Expand Down

0 comments on commit 6cca924

Please sign in to comment.