Home Forums WoodMart support forum Getting Content security policy (CSP) violation in Cart page console

Getting Content security policy (CSP) violation in Cart page console

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #658190

    chandansenbu
    Participant

    I’m using woocomerce official payment plugin “WooPayment” for payment integration. My client integrated some payment methods but now I can see some errors like this. Can you help me why I’m getting this error:
    Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' 'sha256-zhyeDlZTEKZvKgtxHpxj4ydFABucKb8zpjZLFzOborc=' 'sha256-leLzbVxZAzOi3vU/QL+Ol4qnwxlwA0nSPFZDP71A4Kk=' 'sha256-mQ4LZTkAl1QYJkeyaT4nVx0YDeQ9WOH9k4ajt5PFvNU=' 'sha256-B3yoUHRULn1isE4VCTQnLT04X7QKzhw+FhvpPPZfR/w='". Either the 'unsafe-inline' keyword, a hash ('sha256-2UaKjTporsQutKvrtoF3T6P1SfELvN/EBhNwd2wtQ3w='), or a nonce ('nonce-...') is required to enable inline execution.

    #658311

    Hung Pham
    Keymaster

    Hi chandansenbu,

    Thanks for reaching to us and appreciate your patience.

    Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?

    Regards,

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)