Skip to content

Commit

Permalink
fix: allow embedding into iframes (close #550)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
hacdias committed Jan 6, 2019
1 parent 28b326a commit 2d858e6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions http/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ func getStaticHandlers(storage *storage.Storage) (http.Handler, http.Handler) {
return http.StatusNotFound, nil
}

w.Header().Set("x-frame-options", "SAMEORIGIN")
w.Header().Set("x-xss-protection", "1; mode=block")

return handleWithStaticData(w, r, d, box, "index.html", "text/html; charset=utf-8")
}, "", storage)

Expand Down

0 comments on commit 2d858e6

Please sign in to comment.