Skip to content

Commit

Permalink
Set x-frame-options to sameorigin
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Apr 23, 2021
1 parent c7fd1e2 commit da77031
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 da77031

Please sign in to comment.