To process image load error I used to write something like this:
<img src="image.png" onError="this.src='defaultImage.png';"/>
but since I've added content-security-policy to my app, inline-scripts doesn't work anymore.
Are there any other solutions for this problem?