Skip to content

Commit f656b12

Browse files
author
AiQL.com
authored
Update app.js
1 parent e8c5f03 commit f656b12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ app.use('/', createProxyMiddleware({
1313
},
1414
onProxyRes: function (proxyRes, req, res) {
1515
proxyRes.headers['Access-Control-Allow-Origin'] = '*';
16+
proxyRes.headers['Access-Control-Allow-Headers'] = '*';
1617
}
1718
}));
1819

1920
app.listen(port, () => {
2021
console.log(`Proxy agent started: http://localhost:${port}`)
21-
})
22+
})

0 commit comments

Comments
 (0)