Allow inline style tags and remove Bunny font
This commit is contained in:
@@ -33,8 +33,6 @@ class ContentSecurityPolicy
|
||||
return $response;
|
||||
}
|
||||
|
||||
$allowUnsafeInlineStyles = $request->is('event-admin*');
|
||||
|
||||
$matomoOrigin = $this->normaliseOrigin(config('services.matomo.url'));
|
||||
$scriptSources = [
|
||||
"'self'",
|
||||
@@ -120,11 +118,7 @@ class ContentSecurityPolicy
|
||||
$styleSources[] = 'data:';
|
||||
$connectSources[] = 'https:';
|
||||
$fontSources[] = 'https:';
|
||||
$styleElemSources = $styleSources;
|
||||
|
||||
if ($allowUnsafeInlineStyles) {
|
||||
$styleElemSources = array_unique(array_merge($styleElemSources, ["'unsafe-inline'"]));
|
||||
}
|
||||
$styleElemSources = array_unique(array_merge($styleSources, ["'unsafe-inline'"]));
|
||||
|
||||
$directives = [
|
||||
'default-src' => ["'self'"],
|
||||
|
||||
Reference in New Issue
Block a user