Skip to content

Commit

Permalink
trying to solve cors error 2
Browse files Browse the repository at this point in the history
  • Loading branch information
subru-37 committed Jan 14, 2025
1 parent 761c882 commit fe81e5d
Show file tree
Hide file tree
Showing 2 changed files with 6,545 additions and 2,198 deletions.
2 changes: 1 addition & 1 deletion apps/core-admin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const allowedOrigins = ['https://techno-event-management.vercel.app', 'http://lo
app.use(
cors({
origin: allowedOrigins,
methods: ['GET', 'POST', 'PUT', 'DELETE'],
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
credentials: true, // Allow cookies or authorization headers
}),
);
Expand Down
Loading

0 comments on commit fe81e5d

Please sign in to comment.