Skip to content

Commit

Permalink
Add * CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
alllenshibu committed Jan 14, 2025
1 parent 110228b commit 0a54f6e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions apps/core-admin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ const allowedOrigins = [
'https://admin.eventsync.iedcmec.in',
];

app.use(
cors({
origin: allowedOrigins,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
credentials: true, // Allow cookies or authorization headers
allowedHeaders: ['Content-Type', 'Authorization'],
}),
);
app.use(cors());

app.use(
bodyParser.json({
Expand Down

0 comments on commit 0a54f6e

Please sign in to comment.