Skip to content

Commit

Permalink
fix: cors in auth_secret_key model
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-ge committed Mar 11, 2023
1 parent 1c514c2 commit 5786629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"express"
],
"engines": {
"node": "^16 || ^18"
"node": "^16 || ^18 || ^19"
},
"scripts": {
"start": "esno ./src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app.use(express.json())

app.all('*', (_, res, next) => {
res.header('Access-Control-Allow-Origin', '*')
res.header('Access-Control-Allow-Headers', 'Content-Type')
res.header('Access-Control-Allow-Headers', 'authorization, Content-Type')
res.header('Access-Control-Allow-Methods', '*')
next()
})
Expand Down

0 comments on commit 5786629

Please sign in to comment.