Skip to main content Join the Agentforce Virtual Hackathon to build innovative solutions and compete for a $50k Grand Prize. Sign up now. Terms apply.
I have on LWC component in it I am displaying the LoggedIn User details like Name and FullPhotoUrl fields

To diaplay FullPhotoUrl user field I have used Image tag in the LWC

It is working fine When I am opening in the New Tab 

But When try to open that site in the Ignition window it's not displaying image and  I am gettin this error in the console.

"""Refused to load the image

 because it violates the following Content Security Policy directive: "img-src 'self' data: blob:"""

Is there any way to resolve this
3 respuestas
  1. 25 ene 2023, 1:44 p.m.
    Hi Seth,

    Can you try below.

    Set up --> csp trusted site --> create new record --> add your url --> select the below content as needed and click save 

    Thanks,
  2. 25 ene 2023, 1:53 p.m.
    Hi Vinay,

    I have added the URL of my Site in the CSP trusted site but didn't work for me.
0/9000