Stripe payment page Connection is not secure 问题
Stripe payment page Connection is not secure problem
我使用 react-stripe-checkout npm 制作了一个捐款支付页面。一切正常。但是在某些浏览器中,它显示 Connection is not secure 而某些浏览器在连接时没有显示任何问题。
第二个问题。在控制台中,多次显示错误 -
[Report Only] Refused to apply inline style because it violates the
following Content Security Policy directive: "style-src 'self'.
Either the 'unsafe-inline' keyword, a hash ('sha256-vm6IzvFZd99ObdwJODb8jyYg2jyzf6SewoA692PD8/A='), or a nonce ('nonce-...') is required to enable inline execution.
这个 Connection is not secure
警告是否显示在 Stripe Checkout 页面或托管您的网络应用程序的网站上?如果它在您的网站上,那么您可能需要检查您的 SSL 认证配置。
第二个错误与内容安全策略有关,您可以在此处找到 Stripe CSP 指令https://stripe.com/docs/security/guide#content-security-policy
我使用 react-stripe-checkout npm 制作了一个捐款支付页面。一切正常。但是在某些浏览器中,它显示 Connection is not secure 而某些浏览器在连接时没有显示任何问题。
第二个问题。在控制台中,多次显示错误 -
[Report Only] Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'. Either the 'unsafe-inline' keyword, a hash ('sha256-vm6IzvFZd99ObdwJODb8jyYg2jyzf6SewoA692PD8/A='), or a nonce ('nonce-...') is required to enable inline execution.
这个 Connection is not secure
警告是否显示在 Stripe Checkout 页面或托管您的网络应用程序的网站上?如果它在您的网站上,那么您可能需要检查您的 SSL 认证配置。
第二个错误与内容安全策略有关,您可以在此处找到 Stripe CSP 指令https://stripe.com/docs/security/guide#content-security-policy