tall-engineer-4784
10/04/2022, 5:29 PM127.0.0.1
without proxying 127.0.0.1:4433 -> 127.0.01:3000/api/.ory
?
I am using the React/Nextjs template (127.0.01:3000
) and Kratos running in Docker (127.0.0.1:4433)
. I'm trying to change the basePath
of Configuration
of V0alpha2Api
to <http://127.0.0.1:4433>
, but I get Network Error.
The reason why I don't want to do a proxy to redirect the requests from /api/.ory
to 127.0.0.1:4433
is because during development I want to run several different react applications on different ports which communicate with the same server and therefore should use a single authorization (which I plan to implement as a separate react application) and I don't want to add route /api/.ory
to each of those applications to be able to authorize in dev mode. (in a product build applications will be placed on their own paths of the same domain and I don't mind adding a proxy for <http://domain.com/api/.ory|domain.com/api/.ory>
, but I would like to avoid this for each individual application).
Can you please tell me if there is any solution to this problem with Ory Kratos?
Thank you!tall-engineer-4784
10/05/2022, 2:03 PMtall-engineer-4784
10/05/2022, 4:22 PMlocalhost
, and not with 127.0.0.1
, because now I get CORS error. If I use the "Allow CORS" extension, then everything works. Accordingly, the question now boils down to how to deal with this CORS error (use the same-site
, instead of the same-origin
).
Could you please tell me if there is a solution?steep-lamp-91158
tall-engineer-4784
10/07/2022, 10:15 AM