Can somebody help me please with Content Security Policy warning messages in google console?
I read the article and installed the module, however, the console still shows the issue with Recaptcha.
I also added this line to whitelist file but it didn’t help. <value id="google-recaptcha" type="host">https://www.google.com/recaptcha/</value>
I use M2.4.2. This CSP drives me crazy. I can’t get rid of these warnings.
Read quite a few articles, installed Craig’s module but the warnings still persist.
Are you seeing this when logging on as a customer on the frontend? If so, it isn’t a CSP issue, it is a Chrome Issue…see below which is a paste of my notes when I came across this issue. Note: In Magento 2.4 event fixing this issue the Recaptcha still didn’t work so I had to disable it. The github link may have a proper fix now, I haven’t revisited it for a over year.
Now getting Google Recaptcha not loading when you enter an email address. Getting unsafe-inline error, this is known…
Fix: Create /app/code/CUSTOMMODULENAME/Backend/etc/config.xml With the following code: