Skip to content

Commit

Permalink
fix loading mapbox-gl in NC 20
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed Sep 11, 2020
1 parent 61496fb commit 7a657f3
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 7a657f3

Please sign in to comment.