Fix: add 'self' to connect-src

This commit is contained in:
Pieter Vander Vennet 2024-02-06 23:48:07 +01:00
parent 8f32916454
commit 3bca1305b5

View file

@ -306,7 +306,7 @@ async function generateCsp(
}
const geojsonSources: string[] = layout.layers.map((l) => l.source?.geojsonSource)
const hosts = new Set<string>()
const hosts = new Set<string>("self")
const eliLayers: RasterLayerPolygon[] = AvailableRasterLayers.layersAvailableAt(
new ImmutableStore({ lon: 0, lat: 0 })
).data