Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 86d720e

Browse files
authored
fix: cors in auth_secret_key model (#499)
1 parent 379bbcd commit 86d720e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

service/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"express"
1212
],
1313
"engines": {
14-
"node": "^16 || ^18"
14+
"node": "^16 || ^18 || ^19"
1515
},
1616
"scripts": {
1717
"start": "esno ./src/index.ts",

service/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ app.use(express.json())
1111

1212
app.all('*', (_, res, next) => {
1313
res.header('Access-Control-Allow-Origin', '*')
14-
res.header('Access-Control-Allow-Headers', 'Content-Type')
14+
res.header('Access-Control-Allow-Headers', 'authorization, Content-Type')
1515
res.header('Access-Control-Allow-Methods', '*')
1616
next()
1717
})

0 commit comments

Comments
 (0)