Skip to content

Commit

Permalink
Merge pull request #448 from nextcloud/fix/load-mapbox-gl-blob
Browse files Browse the repository at this point in the history
Fix loading mapbox-gl in NC 20
  • Loading branch information
Julien Veyssier authored Sep 25, 2020
2 parents 02a9733 + 7a657f3 commit 26a20b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ private function addCsp($response) {
$csp->addAllowedConnectDomain('https://api.mapbox.com');
$csp->addAllowedConnectDomain('https://events.mapbox.com');
$csp->addAllowedConnectDomain('https://graphhopper.com');

$csp->addAllowedChildSrcDomain("blob:");
// allow connections to custom routing engines
$urlKeys = [
'osrmBikeURL',
Expand Down

0 comments on commit 26a20b2

Please sign in to comment.