summaryrefslogtreecommitdiff
path: root/app/ServiceProvider
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-10 18:59:06 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-10 18:59:06 -0400
commit0e233673e32ffff50dd9392fb3c371a9fff8bf0a (patch)
treef7e3b24813c28f122de1b42dcf3784faabb3ae2f /app/ServiceProvider
parente3521db6a83639b409e2dd7abb19417f3ac0a9cd (diff)
Allow plugins to override CSP rules
Diffstat (limited to 'app/ServiceProvider')
-rw-r--r--app/ServiceProvider/ClassProvider.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/ServiceProvider/ClassProvider.php b/app/ServiceProvider/ClassProvider.php
index 8a959638..5d157749 100644
--- a/app/ServiceProvider/ClassProvider.php
+++ b/app/ServiceProvider/ClassProvider.php
@@ -126,5 +126,7 @@ class ClassProvider implements ServiceProviderInterface
};
$container['pluginLoader'] = new Loader($container);
+
+ $container['cspRules'] = array('style-src' => "'self' 'unsafe-inline'", 'img-src' => '* data:');
}
}