I had the same problem, in particular, with trying to display img from the src file returned by forge.file.getImage. Angular adds insecure: to the content: the prefix of the local url img, and as connorhd said, you need to add the content: to the url whitelist.
Please note that the compileProvider API has changed with the latest versions of Angular, so I will comment here if anyone else finds an updated version of this workaround useful.
app.config(['$compileProvider', function($compileProvider) { $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel|content|blob):|data:image|/);
fisch2
source share