iframe页面cookie问题

21 阅读1分钟

问题

嵌套的iframe cookie不互通问题

解决方法

设置samesite为none

image.png

背景:cookie存储token时,无法同步登录状态。(听说token已经不推荐存储在cookie中😅)