My api will serve to tenants which is seperated by subdomian for each company.
And I am trying to test if a user can connect to different companies in same browser in different tabs.
When I connect to 2 different subdomains, in the request, the last logged on subdomain’s session cookie is sent.
Request cookie for qa.localhost:3000
Request cookie for localhost:3000
As I know, in default, all cookies for subdomains are distinct if RestrictAllCookiesToDomain is not set.
And additionally, I can not see session cookie in subdomain qa :
But I can see it in default domain
Is there any setting to seperate session cookies for subdomains?