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);