1、判断是否内嵌:
window.self === window.top
true: 非内嵌,false: iframe 内嵌
2、内嵌扫码不跳转问题(sandbox配置)
<iframe id="iframe" sandbox="allow-same-origin allow-scripts" src="" frameborder="0"></iframe>
3、设置Google 共享cookie
* Browse to: chrome://flags/#same-site-by-default-cookies
* Change the “SameSite by default cookies” = Disabled
* Restart the browser
访问 chrome://flags/#same-site-by-default-cookies
改变 SameSite 的默认值
重启浏览器