Why Does Acquiring Web Opt-In Violate the Content Security Policy Directive?

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

1.png

Solution

Perform the following steps: 

info

Note

The issue occurs with the uploaded image icon for web opt-in.

  1. Ensure that you have the required access for the image uploaded.
  2. 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

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?