echoing-bird-61980
02/23/2023, 9:20 PMfrontend.createBrowserRegistrationFlow()
works fine, it redirects the client and grabs the flow.... but when using getRegistrationFlow()
there is no way to pass the cookie into the body or header due to the cookie being HTTP Only. I've set the frontend config to include credentials, confirmed it is sending the cookie but it seems Kratos is requiring the cookie to also be added to the body and/or another header, both of which I can't figure out how to do / don't think it is possible as it's returning CSRF violation each time.The anti-CSRF cookie was found but the CSRF token was not included in the HTTP request body (csrf_token) nor in the HTTP Header (X-CSRF-Token)
createNativeRegistrationFlow()
/ API route instead even though it's advised against in SPA type apps & browser routes should really work/be fine besides this one issue?echoing-bird-61980
02/24/2023, 6:35 AM