summaryrefslogtreecommitdiffstats
path: root/api/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/context.go')
-rw-r--r--api/context.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/context.go b/api/context.go
index ac9dffcbc..036128a00 100644
--- a/api/context.go
+++ b/api/context.go
@@ -100,6 +100,8 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId)
w.Header().Set(model.HEADER_VERSION_ID, utils.Cfg.ServiceSettings.Version)
+ w.Header().Set("X-FRAME-OPTIONS", "DENY")
+ w.Header().Set("Content-Security-Policy", "frame-ancestors none")
sessionId := ""