https://supertokens.com/ logo
Title
g

galto4ir

01/23/2023, 6:40 AM
Cookie issue for me
r

rp

01/23/2023, 6:41 AM
hey @galto4ir
please elaborate
g

galto4ir

01/23/2023, 6:41 AM
Sorry guys
My backend api and frontend different
Domain
Frontend domain: https://127.0.0.1:3000
Sorry for bad english
r

rp

01/23/2023, 6:44 AM
I’m not sure how https works with ip addresses
g

galto4ir

01/23/2023, 6:45 AM
just dev envi
r

rp

01/23/2023, 6:46 AM
I can’t really understand the issue. Maybe use a translator to explain properly please. Otherwise I can’t help.
g

galto4ir

01/23/2023, 6:52 AM
Let me try explain using video
cross origin issue
r

rp

01/23/2023, 7:03 AM
make sure that the apiDomain and websiteDomain is correctly set on the frontend and backend
websiteDomain value should be
"http://localhost:3000"
and apiDomain should be
"https://192.168.1.45"
You also need to make sure that you use https for the api domain instead of http. Cause otherwise the browser will reject cookies since the backend and frontend domains are cross site
alternatively, you can switch to using localhost with a different port for the backend as well (instead of using IP address)