-
Hey guys, I am currently trying to get the Kratos registration flow working on a react app that I am creating. I have borrowed some inspiration from the react-native app and the node app that you guys already created. However, I am having CORS issues with the completeSelfServiceRegistrationFlowWithPasswordMethod call when using the @oryd/kratos-client JS package (I have also tried to use fetch directly). I have tried running everything locally (the react app on 127.0.0.1:3000 and kratos on 127.0.0.1:4434) and also on our domain (http://kratos.example.com and http://react.example.com). Get requests are working but the preflight request is failing for post requests:
My kratos config looks something like this (but I have tried many other options)
The request payload being sent looks like this:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
Hey fv316.
|
Beta Was this translation helpful? Give feedback.
-
Since the answer was a bit buried in the thread:
|
Beta Was this translation helpful? Give feedback.
-
I weren't able to solve this issue.
…On Tue, 13 Apr 2021, 12:39 jay-kanakala, ***@***.***> wrote:
Bro, how did you solve it.. pls tell me.. i am also facing same issue
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#986 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFMSKR63SGEQ7RHAB5ASMZ3TIPUZPANCNFSM4WCF3RXA>
.
|
Beta Was this translation helpful? Give feedback.
-
By the way I found a pretty good article on CORS: |
Beta Was this translation helpful? Give feedback.
Since the answer was a bit buried in the thread: