【发布时间】:2016-12-07 19:13:33
【问题描述】:
我已经通过 PHP 库在我的 Wordpress 网站上集成了 Stripe Checkout。
一切都很好,但在 Firefox 中,Stripe 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>
【问题讨论】:
标签: wordpress firefox iframe stripe-payments