问题
- 升级chrome80版本
- 出现异步请求数据没权限
表现
A cookie associated with a cross-site resource at xxx was set without the SameSite
attribute. It has been blocked, as Chrome now only delivers cookies with cross-site requests if they are set with SameSite=None
and Secure
. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
解决办法
- chrome地址栏输入chrome://flags
- 搜索cookies
- 找到如下配置项disabled掉
- 重启浏览器即可