From 8572f38118127743a6bd7b3ca0ac29555e1a9985 Mon Sep 17 00:00:00 2001 From: mhartington Date: Wed, 3 Jun 2015 09:02:14 -0700 Subject: [PATCH] fix(ionicConfig): add content scheme to whitelist When using the camera plugin, it will use a content:// scheme, which will be marked unsafe. Closes #3719 --- js/angular/service/ionicConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/angular/service/ionicConfig.js b/js/angular/service/ionicConfig.js index 3a6c47a5d61..8a0f07718dd 100644 --- a/js/angular/service/ionicConfig.js +++ b/js/angular/service/ionicConfig.js @@ -629,5 +629,5 @@ IonicModule // running-cordova-apps-on-windows-and-windows-phone-8-1-using-ionic-angularjs-and-other-frameworks.aspx .config(['$compileProvider', function($compileProvider) { $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|tel|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/); - $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|ms-appx|x-wmapp0):|data:image\//); + $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|content|blob|ms-appx|x-wmapp0):|data:image\//); }]);