I am working on a AngularJS NodeWebkit application and adding image src as following
<div ng-repeat="product in product.productList" >
<img class="product-image" ng-src="images/product-{{product.id}}.png" alt="image" with='50' height='50' />
</div>
It is coming good in web browser but when it is coming in node webkit application the src is appending with 'unsafe'. eg:-
<img class="product-image" ng-src="/images/product-24586.png" src="unsafe:app//myapp/images/product-24586.png" alt="image" with='50' height='50' />
I have tried the bellow fix, but no luck
var myModule = angular.module('myApp', [...], function($compileProvider) {
...
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|chrome-extension):|data:image\//);
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|chrome-extension):/);
});
$compileProvider.imgSrcSanitizationWhitelist('/^\s/img\//');