Hello, I have a problem with the authentication of...
# support-questions
f
Hello, I have a problem with the authentication of my API. I have the front in nextJs and the back in FastAPI. API calls from the front return always a 401. The AxiosInterceptors doesn't work either. Thanks 🙂
r
Can I see the frontend and backend supertokens config?
f
sorry, send in other
r
Can I see the URL and request header for the first axios call (without credentials being added)? And what is the value of NEXT_PUBLIC_WEBSITE_DOMAIN while you are testing this?
f
yes, i go
NEXT_PUBLIC_WEBSITE_DOMAIN in local is http://localhost:3000
r
ah i see. But your axios is quering localhost:8000, So you should change the apiDomain to "http://localhost:8000"
on the frontend config and backend config
definite
Thanks a lot
r
Did it work?
f
yes
r
awesome!
4 Views