关于谷歌浏览器携带cookie失效解决方案

解决办法

  • 若为一个vue搭建的项目,并引入axios,确保有这句话:axios.defaults.withCredentials = true;(允许携带cookie)
  • 在谷歌浏览器中搜索chrome://flags/
  • 在出现的页面搜索框中搜索SameSite
  • 把第一个改为disable
  • 重启浏览器

原文地址:https://www.cnblogs.com/art-poet/p/13751120.html