浏览器 cookie 警告

805 阅读1分钟

this attempt to set a cookie via a aset-cookie header was blocked because its domain attribute was invalid with regards to the current host url

浏览器控制台的 request Headers Cookie: 有一个感叹号!

原因是后端设置了domain,限制了域名。

解决方法: 让后端注释掉domain设置就可以了。