Seems like there is no way to do so :(
How to not send a cookie to a subdomain
Question
How can I stop sending cookie to only specific subdomain?
I have hosted images and assets in CDN. Its urls are
- images.website.com
- assets.website.com
I provide subdomains to all registered users, suppose
- user1.website.com
- user2.website.com
- and so on..
I need cookies to be sent in all the subdomain so that if I navigate from user1.website.com to user2.website.com I must be looged in.
But I dont want cookies to be sent to CDN url.
Is there any way to achieve it ?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow