Allow iframes from *cloudron.io

This commit is contained in:
Johannes Zellner
2019-07-31 08:08:46 +02:00
parent c5b9fccedb
commit 26d27a3f6a
+10
View File
@@ -89,6 +89,16 @@ app.config(['NotificationProvider', function (NotificationProvider) {
});
}]);
// configure resourceUrlWhitelist https://code.angularjs.org/1.5.8/docs/api/ng/provider/$sceDelegateProvider#resourceUrlWhitelist
app.config(function ($sceDelegateProvider) {
$sceDelegateProvider.resourceUrlWhitelist([
// Allow same origin resource loads.
'self',
// Allow loading from our assets domain. Notice the difference between * and **.
'https://*cloudron.io/**'
]);
});
// setup all major application routes
app.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/', {