Specifying subdomain of OSM in CSP

This commit is contained in:
collin 2026-04-20 22:50:57 +02:00
parent a4ca830cf7
commit aec322b5c3

View file

@ -30,7 +30,7 @@ func getStaticFile(relPath string, contentType string, w http.ResponseWriter) {
}
w.Header().Add("Content-Type", contentType)
w.Header().Add("Content-Security-Policy", "default-src 'self' openstreetmap.org;")
w.Header().Add("Content-Security-Policy", "default-src 'self' www.openstreetmap.org;")
w.WriteHeader(http.StatusOK)
w.Write(file)
}