proud-crowd-54655
05/03/2022, 11:02 AMfetch(baseUrl + "/self-service/login/browser", {
headers: {
Accept: "application/json",
"Accept-Encoding": "gzip, deflate, br",
"Connection": "keep-alive",
"Content-Type": "application/json",
},
method: "GET",
})
And the login:
fetch(baseUrl + "/self-service/login?flow=" + flowId, {
body: JSON.stringify(data),
credentials: "include",
headers: {
Accept: "application/json",
"Accept-Encoding": "gzip, deflate, br",
"Connection": "keep-alive",
"Content-Type": "application/json",
Credentials: "include",
"X-CSRF-Token": csrfToken,
},
method: "POST",
})
But it looks like the cookies from the first step aren't being included in the login of the second step. Does anyone have any tips on what we're doing wrong?
We've got it to work in Postman, but the cookies seem to be automatically included there.
Any help would be much appreciated!proud-plumber-24205
05/03/2022, 2:38 PM--dev
flag to kratos so that you can pass the cookie over an insecure protocol (http instead of https).
Check out https://www.ory.sh/docs/kratos/guides/configuring-cookiesproud-crowd-54655
05/04/2022, 11:17 AM