From bc13eed3728401a22dcf6139369a48f2d0070260 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sun, 10 Oct 2021 22:11:41 -0400 Subject: [PATCH] Permissive cors config --- src/routes.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/routes.js b/src/routes.js index 555bb2ec..3c51b747 100644 --- a/src/routes.js +++ b/src/routes.js @@ -211,7 +211,12 @@ module.exports = async ( } } - app.use(cors()) + app.use( + cors({ + credentials: true, + origin: '*' + }) + ) app.use((req, res, next) => { res.setHeader('x-session-id', SESSION_ID)