Adding CSP for iframes to allow src from OSM
This commit is contained in:
parent
e4930efff9
commit
f222a2e2c5
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +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.WriteHeader(http.StatusOK)
|
||||
w.Write(file)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue