From f05d7beb398d5430f087ca9d47f997331c11115b Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 11 Feb 2021 22:40:21 +0100 Subject: [PATCH] return to test --- packages/dashboard/src/pages/api/redirect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dashboard/src/pages/api/redirect.js b/packages/dashboard/src/pages/api/redirect.js index 66268a26..06bb0ab5 100644 --- a/packages/dashboard/src/pages/api/redirect.js +++ b/packages/dashboard/src/pages/api/redirect.js @@ -8,8 +8,8 @@ export default async (req, res) => { console.log(req.rawHeaders); try { const auth = await superagent - .set("Cookie", serialize("ory_kratos_session", req.cookies.ory_kratos_session)) - .get("/user"); + .get("/user") + .set("Cookie", serialize("ory_kratos_session", req.cookies.ory_kratos_session)); console.log(auth.header);