Skip to content

Commit

Permalink
[nextcloud#67] Update csp correctly for dashborad
Browse files Browse the repository at this point in the history
Signed-off-by: Marius David Wieschollek <git.public@mdns.eu>
  • Loading branch information
marius-wieschollek committed Dec 31, 2020
1 parent ab8b816 commit 4abadff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function handle(Event $event): void {
return;
}

if($this->settingsService->getUserStyleHeaderEnabled() || $this->settingsService->getServerStyleLoginEnabled()) {
if($this->settingsService->getUserStyleHeaderEnabled() || $this->settingsService->getServerStyleLoginEnabled() || $this->settingsService->getUserStyleDashboardEnabled()) {
$policy = new ContentSecurityPolicy();
$policy->addAllowedImageDomain('https://source.unsplash.com');
$policy->addAllowedImageDomain('https://images.unsplash.com');
Expand Down

0 comments on commit 4abadff

Please sign in to comment.