Skip to content

Commit 9c52099

Browse files
authored
Merge pull request #25 from Acode-Foundation/fix-cors-header
fix(cors): add x-auth-token to Access-Control-Allow-Headers
2 parents 5da8a6e + ac1ea5f commit 9c52099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function main() {
2929
// allow origin https://localhost
3030
app.use((_req, res, next) => {
3131
res.header('Access-Control-Allow-Origin', 'https://localhost');
32-
res.header('Access-Control-Allow-Headers', 'Content-Type');
32+
res.header('Access-Control-Allow-Headers', 'Content-Type, x-auth-token');
3333
next();
3434
});
3535

0 commit comments

Comments
 (0)