Skip to content

Commit 8a472f5

Browse files
authored
Merge pull request #1363 from chefe/fix-tiles-not-working-on-public-favorite-share-page
Fix tiles not working on public pages because of missing CSP entries
2 parents 8f1b298 + b1dec52 commit 8a472f5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/Controller/PublicFavoritePageController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ private function addCsp($response): void {
140140
$csp = new ContentSecurityPolicy();
141141
// map tiles
142142
$csp->addAllowedImageDomain('https://*.tile.openstreetmap.org');
143+
$csp->addAllowedImageDomain('https://tile.openstreetmap.org');
143144
$csp->addAllowedImageDomain('https://server.arcgisonline.com');
144145
$csp->addAllowedImageDomain('https://*.cartocdn.com');
145146
$csp->addAllowedImageDomain('https://*.opentopomap.org');

lib/Controller/PublicPageController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ private function addCsp($response): void {
207207
$csp = new \OCP\AppFramework\Http\ContentSecurityPolicy();
208208
// map tiles
209209
$csp->addAllowedImageDomain('https://*.tile.openstreetmap.org');
210+
$csp->addAllowedImageDomain('https://tile.openstreetmap.org');
210211
$csp->addAllowedImageDomain('https://server.arcgisonline.com');
211212
$csp->addAllowedImageDomain('https://*.cartocdn.com');
212213
$csp->addAllowedImageDomain('https://*.opentopomap.org');

0 commit comments

Comments
 (0)