【发布时间】:2022-02-16 04:34:26
【问题描述】:
我的项目中集成了条带元素。 我在前端使用 sapper,在后端使用 ruby。
我按照教程设置服务器以使用条带私钥生成支付意图和前端以显示使用条带发布密钥的条带可嵌入 UI,一切正常唯一的问题如下。
使用测试卡详细信息完成付款后,我收到以下错误
Refused to load the image 'https://hooks.stripe.com/img/favicon.png' because it violates the following Content Security Policy directive: "img-src data: https://q.stripe.com".
【问题讨论】:
标签: html stripe-payments content-security-policy sapper