Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
patmmccann authored Aug 18, 2022
1 parent 6893d41 commit 721cfdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/fake-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ app.use(function(req, res, next) {
'https://test.localhost:9999': true
};
if (origin in whitelist) {
res.header('Access-Control-Allow-Origin', req.headers.origin);
res.header('Access-Control-Allow-Origin', origin);
res.header('Access-Control-Allow-Credentials', true);
}
next();
Expand Down

0 comments on commit 721cfdc

Please sign in to comment.