Replies: 3 comments 9 replies
-
|
Hello @GautDel Here are a few steps you can take to resolve this issue:
Replace http://your-ip-address:5173 with the actual address of your frontend react app. This configuration allows CORS requests from your frontend app to the Ory Kratos server.
If you've done all these and you're still encountering the issue, it might be helpful to read more about CORS on Mozilla's documentation. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @GautDel did you end up getting this to work? I have a very smilar setup and am trying to setup ory tunnel but it's asking for my project slug for a self hosted kratos instance |
Beta Was this translation helpful? Give feedback.
-
|
@fraschm1998 @GautDel did you resolve it? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I have a home server on which I run a VM running debian where I do all my dev work from. I then ssh into the machine and access any endpoints from my personal computer's browser. (This may play into the issue?)
I have an instance of kratos self hosted as well as a server and frontend all running on the same domain, but using different ports.
Every time I try to make any sort of request to the kratos server instance from my frontend app, I am met with a CORS error. However, if I make a direct request using the search bar, there are no issues.
Here is the current error:
"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://(ipaddress of server):4455/sessions/whoami (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 404."
The request is coming from http://(ipaddress of server):5173 where the frontend react app lives,
I've tried adding the react address to the kraken.yml config file under "allowed_origins", but nothing... I'm lost and in need of a bit of direction, if anyone is willing to spend the time?
Any ideas?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions