diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-27 08:29:08 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-27 08:29:08 -0700 |
commit | 18d160bec53c36b604900506a461598a7082ff9b (patch) | |
tree | b3e98d448655bc8b02a025604e7c39d88803b81b /api | |
parent | c0d225c6d8ac3f1f7f07047f6527d16d173d3550 (diff) | |
download | chat-18d160bec53c36b604900506a461598a7082ff9b.tar.gz chat-18d160bec53c36b604900506a461598a7082ff9b.tar.bz2 chat-18d160bec53c36b604900506a461598a7082ff9b.zip |
Centralized header additions and removed duplicate code
Diffstat (limited to 'api')
-rw-r--r-- | api/context.go | 2 |
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 := "" |