admin管理员组文章数量:1405393
I'm trying to create a form of Stripe Checkout inside my Ionic App. i've created a Directive that plant the form into my content view, but when i run it, the css fails on content policy violation:
checkout.js:2Refused to load the stylesheet '.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline'". append @ checkout.js:2Button.append @ checkout.js:2(anonymous function) @ checkout.js:2Button.load @ checkout.js:2(anonymous function) @ checkout.js:2(anonymous function) @ checkout.js:2
no matter what i define in my meta tag of content policy, it's just not working what do i do wrong?
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src * 'self' 'unsafe-inline' localhost:* amazonaws amazonaws checkout.stripe 'unsafe-eval';">
I'm trying to create a form of Stripe Checkout inside my Ionic App. i've created a Directive that plant the form into my content view, but when i run it, the css fails on content policy violation:
checkout.js:2Refused to load the stylesheet 'https://checkout.stripe./v3/checkout/button-qpwW2WfkB0oGWVWIASjIOQ.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline'". append @ checkout.js:2Button.append @ checkout.js:2(anonymous function) @ checkout.js:2Button.load @ checkout.js:2(anonymous function) @ checkout.js:2(anonymous function) @ checkout.js:2
no matter what i define in my meta tag of content policy, it's just not working what do i do wrong?
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src * 'self' 'unsafe-inline' localhost:* https://bnc.lt https://api.branch.io amazonaws. amazonaws..cn checkout.stripe. 'unsafe-eval';">
Share
Improve this question
asked Feb 18, 2016 at 18:26
OfershapOfershap
7272 gold badges8 silver badges22 bronze badges
1 Answer
Reset to default 5Your style-src
allows for self
and unsafe-inline
it should also allow for https://checkout.stripe.
本文标签: javascriptstripe checkout css content policy errorStack Overflow
版权声明:本文标题:javascript - stripe checkout css content policy error - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744321347a2600511.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论