#uma-payment-error
1 messages ยท Page 1 of 1 (latest)
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-1bd1ss83rhoRESXnUSD+xUzVPZzKrKQPYKkWOj5TJIc='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.
js.stripe.com/v3/three-ds-2-fingerprint-66f6c83c1a5aae88c5eb2a8e2f7ce836.html#intentId=seti_1LwqZiAuv4dWsOBIjR6CTBcH&locale=en&hosted=false&referrer=https%3A%2F%2Fquidtutor.co.uk%2Fstudent%2Fcheckout&controllerId=__privateStripeController0781:1 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-1bd1ss83rhoRESXnUSD+xUzVPZzKrKQPYKkWOj5TJIc='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.
this is the error that I am getting.
payment is succeeded but there is error in the console.
alright, could you please check the above error and guide accordingly.
No, its customize, we have created it by ourself.
Is this in test mode or live?
Any chance you can provide a screen capture of this error with any sensitive card details redacted?
And when exactly is this thrown?
after payment success.
So after you call confirmPayment?
yes
And you are using Payment Element, then, correct?
Yes
Thanks. Let me see if this has surfaced before, if not I'll file a ticket so that our Engineers are aware of it and can look further into it, but if payments are succeeding then I would just ignore it for now.
Alright.
Hmm actually one question: do you happen to be importing Stripe JS multiple times?
And how are you importing it exactly?
Guess that's two questions ๐
Let me confirm it from front end team.