Hello experts!
I’m trying to present image inside my custom build PCF control.
I’m using approach described in "https://benediktbergmann.eu/2020/04/22/pcf-how-to-use-images-in-component/" blog article to retrieve base64 PNG image from PCF resources and as a result I’m getting the following HTML:
<div><img id="imgSmile" src="data:image/png;base64,iVBORw0KGgoAAA…">
</div>
“…” of course, represents remaining characters of the image data, I don’t want to paste here the whole one.
When I’m opening above HTML in the browser – everything works fine, and the image is displayed in the browser window.
However, when it is included inside PCF control on the model-driven PowerApp form (and I can see that exactly same HTML is generated) – the image is not loading correctly.

In the Chrome development tools “Network” tab – I can see that HTTP 400 errors about browser trying to access the following address which of course is not the valid one:
https://myenvironmentname.crm4.dynamics.com/data:image/png;base64,iVBORw0KGgoAAA...
Any idea what could be wrong? Some missing configuration? Anything else?