Skip to content

Commit

Permalink
fix(cors): enable cors for all
Browse files Browse the repository at this point in the history
  • Loading branch information
emile-bex committed Nov 20, 2023
1 parent 031ff6f commit 80cf01c
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@ async function bootstrap() {
SwaggerModule.setup('api', app, document);
}

app.enableCors({
origin: [
`${process.env.FRONT_URL}`,
/\.webflow\.io$/,
/\.entourage\.social$/,
/\.linkedout\.fr$/,
],
});
app.enableCors();
/*
{
origin:
[
`${process.env.FRONT_URL}`,
/\.webflow\.io$/,
/\.entourage\.social$/,
/\.linkedout\.fr$/,
],
}
*/

await app.listen(process.env.PORT || 3000);
}

Expand Down

0 comments on commit 80cf01c

Please sign in to comment.