From 7a657f3cbcb2b0c52dccd2d7713bc4f25a3e2cbd Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Fri, 11 Sep 2020 14:49:32 +0200 Subject: [PATCH] fix loading mapbox-gl in NC 20 Signed-off-by: Julien Veyssier --- lib/Controller/PageController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index ccfb86eae..74aa5fd1e 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -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',