Ale*_*mot 4 stripe-payments content-security-policy
我正在集成 Strip Checkout,没有任何功能问题(到目前为止在我的本地计算机上)。我遇到的唯一问题是,当加载 Stripe Checkout 脚本时,我的 devtools 控制台中出现 690 多个错误,指出:
Refused to load the font 'https://fonts.gstatic.com/s/barlow/v1/7cHqv4kjgoGqM7E3t-4s51os.woff2' because it violates the following Content Security Policy directive: "font-src 'none'".
Run Code Online (Sandbox Code Playgroud)
我尝试在我的页面中添加 CSP 元:
<meta http-equiv="Content-Security-Policy" content="font-src 'self' https://*.gstatic.com">
Run Code Online (Sandbox Code Playgroud)
但许多错误仍然存在。如何修复它们?
只是好奇,当您访问 https://stripe.github.io/elements-examples/时
你看到类似的错误吗?
这可能是一个遥远的事情,但你现在使用哪种 chrome 扩展?看来很多grammarly安装过的人都有同样的问题。如果是这样,您可以禁用该扩展并重试吗?
谢谢
| 归档时间: |
|
| 查看次数: |
1193 次 |
| 最近记录: |