Skip to content

Commit

Permalink
fix: cors in auth_secret_key model (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-ge authored Mar 12, 2023
1 parent 379bbcd commit 86d720e
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 86d720e

Please sign in to comment.