Skip to content

Commit

Permalink
MOD: update instead of patch in cors config
Browse files Browse the repository at this point in the history
  • Loading branch information
lajosf committed Jan 27, 2025
1 parent f576831 commit ea4f151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srv/middleware/security.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function setupSecurityMiddleware(app) {
// CORS configuration
app.use(cors({
origin: process.env.ALLOWED_ORIGINS?.split(',') || ['http://localhost:4004'],
methods: ['GET', 'POST', 'PATCH', 'DELETE'],
methods: ['GET', 'POST', 'UPDATE', 'DELETE'],
allowedHeaders: ['Content-Type', 'Authorization'],
credentials: true
}));
Expand Down

0 comments on commit ea4f151

Please sign in to comment.