Changing CSP to be for default-src
This commit is contained in:
parent
f222a2e2c5
commit
a4ca830cf7
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-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.WriteHeader(http.StatusOK)
|
||||||
w.Write(file)
|
w.Write(file)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue