-
Hi! I am new to Kratos and I am trying to make a simple React UI to handle authentication. I have some trouble with CORS, my POST request got rejected. I made a simple html file to reproduce the error without the React stuff. index.html
js/script.js
Kratos image
Kratos configuration
console log
Kratos log
ObservationsI got a successful response after sending a request to the init login flow endpoint. However, when I submit a login form, the request is rejected. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hello @Leo843, |
Beta Was this translation helpful? Give feedback.
-
Ok, found the issue!
Hello @vinckr, |
Beta Was this translation helpful? Give feedback.
-
Hey @Leo843 I am using this example to understand ory kratos flow. Hope you don't mind few questions
@vinckr Hey, what is the difference between @ory/kratos-client and @oryd/kratos-client SDKs (Please notice the 'd', second one is 'oryd') |
Beta Was this translation helpful? Give feedback.
Ok, found the issue!
Content-Type
was not included in theallowed_headers:
list in Kratos configuration.credentials: 'include'
when callingfetch
.Hello @vinckr,
I got the image version from a copy/paste alongside the
compose.yml
file, there is no reason to not upgrade.Thank you for your reply!