I have a widget published to be used in ArcGIS Enterprise. When plotting a PNG image as a MediaLayer I receive the error that the blob: is not allowed in the Content Security Policy (CSP). The same error occurs with a GeoJSON layer (pointing to an "in-memory" GeoJSON). The native "Add data" widget also fails when adding a local .geojson file - the layer doesn't load. I tested it on Chrome and Safari with the same failure.
Is there an alternative to use them?
Chrome error:
Refused to load the image 'blob:<URL>' because it violates the following Content Security Policy directive: "img-src * data:". Note that '*' matches only URLs with network schemes ('http', 'https', 'ws', 'wss'), or URLs whose scheme matches `self`'s scheme. The scheme 'blob:' must be added explicitly.
PS: the fail doesn't happen when the same widget is used inside an application from the ExB developer. It happens only when using it on ArcGIS Enterprise ExB.