Fix: add all vector layers to CSP

This commit is contained in:
Pieter Vander Vennet 2023-10-08 14:09:29 +02:00
parent 36a73f3a17
commit 2736740cd0
2 changed files with 8 additions and 9 deletions

View file

@ -245,8 +245,7 @@ function generateCsp(
...Constants.defaultOverpassUrls,
Constants.countryCoderEndpoint,
Constants.nominatimEndpoint,
AvailableRasterLayers.maptilerCarto.properties.url,
AvailableRasterLayers.maptilerDefaultLayer.properties.url,
...AvailableRasterLayers.vectorLayers.map(l => l.properties.url),
"https://api.openstreetmap.org",
"https://pietervdvn.goatcounter.com",
]