We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc0b1f6 + 6d79d77 commit af42e97Copy full SHA for af42e97
proxy/index.js
@@ -2,7 +2,8 @@ const http = require("http");
2
3
const CORS_SETTINGS = {
4
origin: "http://localhost:9100",
5
- methods: "GET PUT POST DELETE OPTIONS HEAD"
+ methods: "GET PUT POST DELETE OPTIONS HEAD",
6
+ headers: "Authorization, Content-Type"
7
}
8
9
@@ -26,6 +27,7 @@ clusters.forEach( cluster => {
26
27
28
res.setHeader("Access-Control-Allow-Origin", CORS_SETTINGS.origin );
29
res.setHeader("Access-Control-Allow-Methods", CORS_SETTINGS.methods );
30
+ res.setHeader("Access-Control-Allow-Headers", CORS_SETTINGS.headers );
31
32
if (req.method === 'OPTIONS') {
33
res.writeHead(200);
0 commit comments