我的项目中集成了 stripe connect,stripe 验证窗口在弹出窗口中打开,当它关闭时父窗口重新加载。
我几天前工作正常,但现在它给我 window.opener is null 错误 以下是我的代码
window.opener.location.reload();
最佳答案
联系了 stripe 支持,它似乎确实来自他们采取的一些安全措施,这是我得到的部分答案:
[...] Unfortunately, we don't have a work around for this yet as this change was put in place to prevent a security vulnerability a few months back. [...]
所以现在我们进入了整个重定向方法。
关于javascript - Window.opener 不适用于 strip 连接弹出窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32415054/