问题
iframe嵌入cookie无法写入
原因
新版的Chrome下iframe内加载的页面无法写入Cookie
解决
需要嵌入的站点在写Cookie的时候增加 sameSite: none 和 secure:true
是否顶层
// if (window != top) { top.location.href = location.href;}
转载于:前端路径
iframe嵌入cookie无法写入
新版的Chrome下iframe内加载的页面无法写入Cookie
需要嵌入的站点在写Cookie的时候增加 sameSite: none 和 secure:true
是否顶层
// if (window != top) { top.location.href = location.href;}
转载于:前端路径