Alexis Romot
Alexis Romot

Reputation: 534

Stripe Checkout error loading custom fonts

I'm integrating Strip Checkout without any functional problem (on my local machine up to now). The only problem I encounter is that when the Stripe Checkout script is loading, I get 690+ errors in my devtools console stating :

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'".

I tried to add a CSP meta in my page:

<meta http-equiv="Content-Security-Policy" content="font-src 'self' https://*.gstatic.com">

but the numerous errors persist. How to fix them?

Upvotes: 4

Views: 1329

Answers (1)

wsw
wsw

Reputation: 871

Just curious, when you access https://stripe.github.io/elements-examples/

are you seeing similar errors?

It might be a long shot, but what kind of chrome extension are you using now? Seems quite a few folks who have grammarly installed have the same issue. if so, can you disable the extension and try again?

Thanks

Upvotes: 5

Related Questions