]> source.dussan.org Git - gitea.git/commit
Allow setting X-FRAME-OPTIONS (#16643)
authorzeripath <art27@cantab.net>
Fri, 6 Aug 2021 20:47:10 +0000 (21:47 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 20:47:10 +0000 (16:47 -0400)
commitafd88a2418efcef25058bf30df892471c3b68281
tree62564fe9b49acaee7d45f36240dfa149ed6d9f21
parent067d82b5a6eb223ff6f6bfa1755e0a2c5bab1d3f
Allow setting X-FRAME-OPTIONS (#16643)

* Allow setting X-FRAME-OPTIONS

This PR provides a mechanism to set the X-FRAME-OPTIONS header.

Fix #7951

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
custom/conf/app.example.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md
modules/context/api.go
modules/context/context.go
modules/setting/cors.go
routers/install/routes.go
routers/web/base.go