在很多非生产环境下,经常会存在跨域的场景,而在Chrome80版本后这种跨域就会引起页面自动刷新。
错误如下
A cookie associated with a cross-site resource at http://10.181.0.94/ was set without the `SameSite`
attribute. A future release of Microsoft Edge will only deliver 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/#same-site-by-default-cookies
设置为disabled,即可