Skip to content

Commit

Permalink
fix(ionicConfig): add content scheme to whitelist
Browse files Browse the repository at this point in the history
When using the camera plugin, it will use a content:// scheme, which will be marked unsafe. Closes ionic-team#3719
  • Loading branch information
mhartington committed Jun 3, 2015
1 parent 56ab0f2 commit 8572f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/service/ionicConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\//);
}]);

0 comments on commit 8572f38

Please sign in to comment.