<返回更多

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

2020-08-03    
加入收藏



在很多非生产环境下,经常会存在跨域的场景,而在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,即可

声明:本站部分内容来自互联网,如有版权侵犯或其他问题请与我们联系,我们将立即删除或处理。
▍相关推荐
更多资讯 >>>