Skip to content

Commit

Permalink
trying to solve cors error 4
Browse files Browse the repository at this point in the history
  • Loading branch information
subru-37 committed Jan 14, 2025
1 parent 1854b52 commit 110228b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/core-admin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ app.use(
origin: allowedOrigins,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
credentials: true, // Allow cookies or authorization headers
allowedHeaders: ['Content-Type', 'Authorization'],
}),
);

Expand Down

0 comments on commit 110228b

Please sign in to comment.