Stripe Checkout在Firefox中不起作用



我已经通过PHP库在我的WordPress网站上集成了条纹。

一切都很好,但是在Firefox中,iframe引发了错误:

"安全策略:指令'Frame-src'已被弃用。"

那是外部iframe的样子

<iframe
   allowtransparency="true"
   style="
      z-index: 2147483647;
      display: none;
      background: rgba(0, 0, 0, 0.004) none repeat scroll 0% 0%;
      border: 0px none transparent;
      overflow-x: hidden;
      overflow-y: auto;
      visibility: visible;
      margin: 0px;
      padding: 0px;
      position: fixed;
      left: 0px;
      top: 0px;
      width: 100%;
      height: 100%;
   "
   src="https://checkout.stripe.com/m/v3/index-af884f1198ee56a57968.html?distinct_id=3cc4aac1-0c17-892b-6ce9-340ee07ea9b2"
   name="stripe_checkout_app"
   class="stripe_checkout_app"
   frameborder="0"
>
...
</iframe>

这只是一个警告,而不是错误。您可以安全地忽略它。它将在以后的版本中消失,因为frame-src在CSP级别3:https://w3c.github.io/webappsec-csp/#changes-from-level-2。

最新更新