Deactivate CSP Header for the UI, as it breaks webview

This commit is contained in:
Daniel
2019-03-08 23:14:52 +01:00
parent af7e872395
commit d596bd07ca

View File

@@ -113,7 +113,8 @@ func ServeFileFromBundle(w http.ResponseWriter, r *http.Request, bundleName stri
}
// set content security policy
w.Header().Set("Content-Security-Policy", "default-src 'self'")
// FIXME: this breaks the ui client
// w.Header().Set("Content-Security-Policy", "default-src 'self'")
w.WriteHeader(http.StatusOK)
if r.Method != "HEAD" {