Skip to content

Commit

Permalink
PageController: allow tile.openstreetmap.org in CSP
Browse files Browse the repository at this point in the history
So far, we only allowed subdomains, but when I rolled out the other
changes, this was missing from having a working map with OSM tiles.

This is probably not related to the other changes (it worked fine a few
days ago, perhaps something was just changed within OSM), but I figured
it's still worth fixing.

Signed-off-by: Maximilian Bosch <[email protected]>
  • Loading branch information
Ma27 committed Oct 7, 2024
1 parent f9118d8 commit 8e9e960
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ private function addCsp($response): void {
$csp = new \OCP\AppFramework\Http\ContentSecurityPolicy();
// map tiles
$csp->addAllowedImageDomain('https://*.tile.openstreetmap.org');
$csp->addAllowedImageDomain('https://tile.openstreetmap.org');
$csp->addAllowedImageDomain('https://server.arcgisonline.com');
$csp->addAllowedImageDomain('https://*.cartocdn.com');
$csp->addAllowedImageDomain('https://*.opentopomap.org');
Expand Down

0 comments on commit 8e9e960

Please sign in to comment.