a.com 和 b.com
b中内嵌iframe加载a页面,在iframe中读取不到a页面的cookie
已经设置了samesite和secure
最近也做了类似的功能,初步判断是chrome升级了安全策略。
现在解决的方案是在iframe中使用 localStorage
进行数据储存交换,在常规页面再将localStorage取出做处理
作者:admin 2021-04-21 我要评论
a.com 和 b.com b中内嵌iframe加载a页面,在iframe中读取不到a页面的cookie 已经设置了samesite和secure ### 最近也做了类似的功能,初步判断是chrome升级了安全...
a.com 和 b.com
b中内嵌iframe加载a页面,在iframe中读取不到a页面的cookie
已经设置了samesite和secure
最近也做了类似的功能,初步判断是chrome升级了安全策略。
现在解决的方案是在iframe中使用 localStorage
进行数据储存交换,在常规页面再将localStorage取出做处理
版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除