summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Core/Http/Response.php1
-rw-r--r--app/ServiceProvider/ClassProvider.php1
2 files changed, 1 insertions, 1 deletions
diff --git a/app/Core/Http/Response.php b/app/Core/Http/Response.php
index fdd7d994..7fefddeb 100644
--- a/app/Core/Http/Response.php
+++ b/app/Core/Http/Response.php
@@ -220,7 +220,6 @@ class Response extends Base
*/
public function csp(array $policies = array())
{
- $policies['default-src'] = "'self'";
$values = '';
foreach ($policies as $policy => $acl) {
diff --git a/app/ServiceProvider/ClassProvider.php b/app/ServiceProvider/ClassProvider.php
index c56c9259..df4e183b 100644
--- a/app/ServiceProvider/ClassProvider.php
+++ b/app/ServiceProvider/ClassProvider.php
@@ -168,6 +168,7 @@ class ClassProvider implements ServiceProviderInterface
};
$container['cspRules'] = array(
+ 'default-src' => "'self'",
'style-src' => "'self' 'unsafe-inline'",
'img-src' => '* data:',
);