<@498057949541826571> Hey! Im using supertoken wit...
# support-questions-legacy
p
@rp_st Hey! Im using supertoken with a react frontend (with my own design) and a Nest.js Backend. I configured the backend, and I used the 'supertokens-web-js' package in the front, and I'm sending the requests with axios. My issue is that nothing is being added to the outgoing request, and Im getting 401 error. What is missing here? 😦
r
Hey. Can you show me the response headers for the sign in api? A screenshot will do
p
yea sure one moment
r
Can you send a screenshot instead please?
p
Done 🙂
r
What’s the value of websiteDomain and apiDomain that you have set?
p
in the front or the back?
r
Both
p
front: - apiDomain: "http://localhost:4001/api/v1/" backend in the picture
r
right. But your actual website url is
127.0.0.1:3000
right?
you might wanna switch to using
localhsot:3000
on the browser as well
p
why? my front is running on localhost:3000, but my backend is running on localhost:4001, and from the front I have to send the api to backend
r
from the screenshot you said, the front seems to be running on 127.0.0.1:3000
p
I'll summrize
My front app - running on http://127.0.0.1:3000. My Backend server - running on http://127.0.0.1:4001.
r
right. So you should change your apiDomain and websiteDomain values to be that instead of localhost
p
ohhh is it matter?
I thought the browser see that the same
checking
r
well, our interceptors don't get applied otherwise
p
ok I think is sloved it, I cant belive it was that lol
thnx!
3 Views