Skip to content

Commit

Permalink
Merge pull request #397 from ibuildthecloud/master
Browse files Browse the repository at this point in the history
Set x-frame-options to sameorigin
  • Loading branch information
ibuildthecloud authored Apr 23, 2021
2 parents c7fd1e2 + da77031 commit 8e6ffc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/writer/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type HTMLResponseWriter struct {
func (h *HTMLResponseWriter) start(apiContext *types.APIContext, code int, obj interface{}) {
AddCommonResponseHeader(apiContext)
apiContext.Response.Header().Set("content-type", "text/html")
apiContext.Response.Header().Set("X-Frame-Options", "deny")
apiContext.Response.Header().Set("X-Frame-Options", "SAMEORIGIN")
apiContext.Response.WriteHeader(code)
}

Expand Down

0 comments on commit 8e6ffc7

Please sign in to comment.