无法使用Stripe Payment Module在“ DOMWindow”上执行“ postMessage”

soh*_*tel 7 stripe-payments angular

我在我的角度应用程序中集成了Stripe付款模块。当我运行该应用程序时,它显示以下错误。

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://js.stripe.com') does not match the recipient window's origin ('http://localhost:4200').

有什么解决办法吗?

fka*_*usi 0

为了提高性能,你们可能会压缩或聚合站点的 javascript 文件。尝试删除压缩或聚合并再次测试。