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 f516ace + 21f5d47 commit 4c6e342Copy full SHA for 4c6e342
server.js
@@ -47,10 +47,8 @@ function setupConfig(app) {
47
}
48
49
function crossOriginAllower(req, res, next) {
50
- var origin = req.header('Origin', '*');
51
- if (origin == 'null') {
52
- origin = '*';
53
- }
+
+ var origin = req.headers['origin'] || '*';
54
55
res.header('Access-Control-Allow-Origin', origin);
56
res.header('Access-Control-Allow-Credentials', 'true');
0 commit comments