Skip to content

Commit e16b607

Browse files
committed
Allow Authorization header in CORS
1 parent e06f76c commit e16b607

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/src/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const corsOptions = {
6565
},
6666
credentials: true,
6767
methods: ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
68+
allowedHeaders: ["Content-Type", "Authorization"],
6869
};
6970

7071
// Main CORS handler

0 commit comments

Comments
 (0)