diff options
author | Duncan <duncan@vtllf.org> | 2015-07-21 15:19:56 +1200 |
---|---|---|
committer | Duncan <duncan@vtllf.org> | 2015-07-21 15:19:56 +1200 |
commit | a6596f223175547952816351905c34ccf3e0b84f (patch) | |
tree | 1af2c995ec6f411edbfe3dd2937741dbd5d7372e /templates/ng | |
parent | 548b95f7b593d80a241c9a1027eda6b4549ca995 (diff) | |
download | gitea-a6596f223175547952816351905c34ccf3e0b84f.tar.gz gitea-a6596f223175547952816351905c34ccf3e0b84f.zip |
Prevent browsers from leaking referrer headers
Diffstat (limited to 'templates/ng')
-rw-r--r-- | templates/ng/base/head.tmpl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl index f2a235bd43..6d5001a9cb 100644 --- a/templates/ng/base/head.tmpl +++ b/templates/ng/base/head.tmpl @@ -6,6 +6,7 @@ <meta name="author" content="Gogs - Go Git Service" /> <meta name="description" content="Gogs(Go Git Service) a painless self-hosted Git Service written in Go" /> <meta name="keywords" content="go, git, self-hosted, gogs"> + <meta name="referrer" content="no-referrer" /> <meta name="_csrf" content="{{.CsrfToken}}" /> {{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}} |