mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 06:24:11 +01:00 
			
		
		
		
	Prevent browsers from leaking referrer headers
This commit is contained in:
		
							parent
							
								
									548b95f7b5
								
							
						
					
					
						commit
						a6596f2231
					
				@ -6,6 +6,7 @@
 | 
				
			|||||||
	<meta name="author" content="Gogs - Go Git Service" />
 | 
						<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="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="keywords" content="go, git, self-hosted, gogs">
 | 
				
			||||||
 | 
						<meta name="referrer" content="no-referrer" />
 | 
				
			||||||
	<meta name="_csrf" content="{{.CsrfToken}}" />
 | 
						<meta name="_csrf" content="{{.CsrfToken}}" />
 | 
				
			||||||
	{{if .GoGetImport}}
 | 
						{{if .GoGetImport}}
 | 
				
			||||||
	<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
 | 
						<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
 | 
				
			||||||
 | 
				
			|||||||
@ -8,6 +8,7 @@
 | 
				
			|||||||
        <meta name="author" content="Gogs - Go Git Service" />
 | 
					        <meta name="author" content="Gogs - Go Git Service" />
 | 
				
			||||||
		<meta name="description" content="Gogs(Go Git Service) is a GitHub-like clone in the Go Programming Language" />
 | 
							<meta name="description" content="Gogs(Go Git Service) is a GitHub-like clone in the Go Programming Language" />
 | 
				
			||||||
		<meta name="keywords" content="go, git">
 | 
							<meta name="keywords" content="go, git">
 | 
				
			||||||
 | 
							<meta name="referrer" content="no-referrer" />
 | 
				
			||||||
		<meta name="_csrf" content="{{.CsrfToken}}" />
 | 
							<meta name="_csrf" content="{{.CsrfToken}}" />
 | 
				
			||||||
		{{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}}
 | 
							{{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -6,6 +6,7 @@
 | 
				
			|||||||
        <meta name="author" content="Gogs - Go Git Service" />
 | 
					        <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="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="keywords" content="go, git, self-hosted, gogs">
 | 
				
			||||||
 | 
							<meta name="referrer" content="no-referrer" />
 | 
				
			||||||
		<meta name="_csrf" content="{{.CsrfToken}}" />
 | 
							<meta name="_csrf" content="{{.CsrfToken}}" />
 | 
				
			||||||
		{{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}}
 | 
							{{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user