Problem
When the user tries to get web opt-in, the following error message is displayed on the browser’s console: “https://www.moengage.com/img/icon-web-push.png because it violates the following Content Security Policy directive: “img-src assets.adobedtm.com amcglobal.sc.omtrdc.net”.
Solution
Perform the following steps:The issue occurs with the uploaded image icon for web opt-in.
- Ensure that you have the required access for the image uploaded.
- Whitelist the URL
<https://image.moengage.com/>under the image-src directive in the Content Security Policy (CSP) on the customer’s end. For more information, refer to Whitelisting URLs.