From 154dd9911dbfba6ee230f9e8ed62674b1e210636 Mon Sep 17 00:00:00 2001 From: shreeharsha-factly Date: Wed, 24 Nov 2021 18:05:31 +0530 Subject: [PATCH] include credentials while settings flow request --- web/src/pages/password/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/pages/password/index.js b/web/src/pages/password/index.js index df59d03a..98106a6f 100644 --- a/web/src/pages/password/index.js +++ b/web/src/pages/password/index.js @@ -20,7 +20,9 @@ function Password() { window.location.href = window.REACT_APP_KRATOS_PUBLIC_URL + '/self-service/settings/browser'; } - fetch(window.REACT_APP_KRATOS_PUBLIC_URL + '/self-service/settings/flows?id=' + obj['flow']) + fetch(window.REACT_APP_KRATOS_PUBLIC_URL + '/self-service/settings/flows?id=' + obj['flow'], { + credentials: 'include', + }) .then((res) => { if (res.status === 200) { return res.json();