Changing CSP to be for default-src

This commit is contained in:
collin 2026-04-20 22:48:42 +02:00
parent f222a2e2c5
commit a4ca830cf7

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'; frame-src: 'self' openstreetmap.org")
w.Header().Add("Content-Security-Policy", "default-src 'self' openstreetmap.org;")
w.WriteHeader(http.StatusOK)
w.Write(file)
}