From 721cfdc9455753f6511b51f27e1d09d41893d89e Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Thu, 18 Aug 2022 10:45:43 -0400 Subject: [PATCH] Update index.js --- test/fake-server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fake-server/index.js b/test/fake-server/index.js index ef5740c4183..134903c5fb5 100644 --- a/test/fake-server/index.js +++ b/test/fake-server/index.js @@ -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();