Merge pull request #2193 from rgarmsen2295/plt-1858

PLT-1858 Fixed content security policy header
Этот коммит содержится в:
Joram Wilander
2016-02-18 17:33:35 -05:00
родитель daa06ad41e b10f6877a0
Коммит 3c5744f0d6

Просмотреть файл

@@ -161,7 +161,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Instruct the browser not to display us in an iframe for anti-clickjacking
if !h.isApi {
w.Header().Set("X-Frame-Options", "DENY")
w.Header().Set("Content-Security-Policy", "frame-ancestors none")
w.Header().Set("Content-Security-Policy", "frame-ancestors 'none'")
} else {
// All api response bodies will be JSON formatted by default
w.Header().Set("Content-Type", "application/json")