如何不发送cookie来一个子 [英] How to not send a cookie to a subdomain
本文介绍了如何不发送cookie来一个子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能停止发送的cookie只有特定的子域名?
How can I stop sending cookie to only specific subdomain?
我在CDN托管图像和资源。它的网址是
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
- 等..
我需要的Cookie中的所有子域发送,这样,如果我从user1.website.com导航user2.website.com我必须在looged。
但我不想饼干被发送到CDN URL。
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.
有没有办法实现呢?
推荐答案
好像有没有办法做到这一点:(
Seems like there is no way to do so :(
这篇关于如何不发送cookie来一个子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文