-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[js] 第66天 请解释下什么是cookie隔离?为什么要隔离?如何隔离? #405
Comments
一般来说就是几种种情况 |
如果静态文件放在后台(前后端不分离时候),那静态文件请求的时候都带有的cookie的数据提交给server的,非常浪费流量, cookie有域的限制,因此不能跨域提交请求,故使用非主要域名的时候,请求头中就不会带有cookie数据, 同时这种方式不会将cookie传入Web Server,也减少了Web Server对cookie的处理分析环节, |
什么是 Cookie 隔离? 或者说:请求资源的时候不要让它带 cookie 怎么做
经典总结:
|
|
1 similar comment
|
第66天 请解释下什么是cookie隔离?为什么要隔离?如何隔离?
The text was updated successfully, but these errors were encountered: