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
nkshah2
06/16/2023, 5:56 AM
Hi @hehohesda_12345
Just to clarify, thats 2 frontend apps and one backend app?
nkshah2
06/16/2023, 5:56 AM
And you are trying to share sessions between app.example.com and example.com I assume?
h
hehohesda_12345
06/16/2023, 5:58 AM
Yes, example.com is an angular ssr (simply nodejs)
and app.example.com is an angular spa
hehohesda_12345
06/16/2023, 6:03 AM
I had only set the sessionTokenFrontendDomain on the UI,
I have now set cookieDomain in the API and its working.