Skip to content

Commit 8572f38

Browse files
committed
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
1 parent 56ab0f2 commit 8572f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: js/angular/service/ionicConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,5 +629,5 @@ IonicModule
629629
// running-cordova-apps-on-windows-and-windows-phone-8-1-using-ionic-angularjs-and-other-frameworks.aspx
630630
.config(['$compileProvider', function($compileProvider) {
631631
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|tel|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/);
632-
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|ms-appx|x-wmapp0):|data:image\//);
632+
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|content|blob|ms-appx|x-wmapp0):|data:image\//);
633633
}]);

0 commit comments

Comments
 (0)