From aec322b5c37bcce93dfc92de5c081060c58c83fa Mon Sep 17 00:00:00 2001 From: collin Date: Mon, 20 Apr 2026 22:50:57 +0200 Subject: [PATCH] Specifying subdomain of OSM in CSP --- controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.go b/controller.go index 984ceac..3a4b57c 100644 --- a/controller.go +++ b/controller.go @@ -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) }