Skip to content

Commit

Permalink
hotfix cors
Browse files Browse the repository at this point in the history
  • Loading branch information
JuribaDev committed Aug 30, 2024
1 parent 02d998f commit e3078f1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions apps/server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ async function bootstrap() {
}));
const globalPrefix = 'api/v1';
app.setGlobalPrefix(globalPrefix);
app.enableCors({
origin: ['*'],
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
credentials: true,
});
app.enableCors();

const port = process.env.PORT || 3000;
await app.listen(port);
Expand Down

0 comments on commit e3078f1

Please sign in to comment.