Specifying subdomain of OSM in CSP
This commit is contained in:
parent
a4ca830cf7
commit
aec322b5c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue