Skip to content

Commit

Permalink
add credentials option to origin cors
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgehl3n committed Nov 19, 2023
1 parent 23f00db commit 03efe34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class Application {
private _setMiddlewares(): void {
this.express.use(cors({
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
optionsSuccessStatus: 200
optionsSuccessStatus: 200,
credentials: true,
}));

this.express.use(function (req: any, res: any, next) {
Expand Down

0 comments on commit 03efe34

Please sign in to comment.