有警告:
This attempt to set a cookie vla a Set-Cookie header was blocked because its Domain attribute was invalid with regards to thecurrent host url.
设置cookie vla和set cookie标头的尝试被阻止,因为其Domain属性对于当前主机url无效。
解决方法:
说明domain设置的有问题,我将 http://localhost:8080 改为localhost 就可以存上了
domain
可以访问该Cookie的域名。如果设置为“.baidu.com”,则所有以“baidu.com”结尾的域名都可以访问该Cookie。注意第一个字符必须为“.”。