在很多非生產環境下,經常會存在跨域的場景,而在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,即可