https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
b

breezy-air-36947

02/11/2022, 10:13 PM
could this be the issue? I’m running the api on
localhost:4433
and my app on
localhost:3000
p

proud-plumber-24205

02/14/2022, 10:39 AM
@User no, localhost is the domain, the port does not matter when it comes to cookies. https://www.ory.sh/kratos/docs/guides/configuring-cookies You are most likely not including the cookies on the request to kratos.
Copy code
withCredentials: true
b

breezy-air-36947

02/14/2022, 10:39 AM
does that also have to be set when its not cross domain?
I did notice adding that fixed it - I just thought it was only because of cross origin
p

proud-plumber-24205

02/14/2022, 10:40 AM
Copy code
withCredentials: true
should always be there on your axios configs. CORS is usually to do with the server-side
b

breezy-air-36947

02/14/2022, 10:40 AM
thx
👍 1
2 Views