Chrome新版本因为跨域问题引起的页面反复刷新的解决方案


Chrome新版本因为跨域问题引起的页面反复刷新的解决方案

文章插图

在很多非生产环境下 , 经常会存在跨域的场景 , 而在Chrome80版本后这种跨域就会引起页面自动刷新 。
错误如下
【Chrome新版本因为跨域问题引起的页面反复刷新的解决方案】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 ifthey are set with `SameSite=None` and `Secure`. You can review cookies in developer tools underApplication>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 , 即可




    推荐阅读