Hii everyone, I have three apps running on https,...
# general
h
Hii everyone, I have three apps running on https, and self hosted supertokens core that too running on https api.example.com example.com app.example.com I can login to example.com, it works. But when I go to app.example.com, I can see the cookies being attached to the http req, but api.example.com throws unauthorised. I have no idea what to do now. This is what I see on app.example.com
n
Hi @hehohesda_12345 Just to clarify, thats 2 frontend apps and one backend app?
And you are trying to share sessions between app.example.com and example.com I assume?
h
Yes, example.com is an angular ssr (simply nodejs) and app.example.com is an angular spa
I had only set the sessionTokenFrontendDomain on the UI, I have now set cookieDomain in the API and its working.
Thank you
n
Glad you got it working!
15 Views