mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Mirror bug fix
This commit is contained in:
		@@ -97,10 +97,9 @@ func newMacaron() *macaron.Macaron {
 | 
			
		||||
		Config:   *setting.SessionConfig,
 | 
			
		||||
	}))
 | 
			
		||||
	m.Use(csrf.Generate(csrf.Options{
 | 
			
		||||
		Secret:     setting.SecretKey,
 | 
			
		||||
		SetCookie:  true,
 | 
			
		||||
		Header:     "X-Csrf-Token",
 | 
			
		||||
		CookiePath: setting.AppSubUrl,
 | 
			
		||||
		Secret:    setting.SecretKey,
 | 
			
		||||
		SetCookie: true,
 | 
			
		||||
		Header:    "X-Csrf-Token",
 | 
			
		||||
	}))
 | 
			
		||||
	m.Use(toolbox.Toolboxer(m, toolbox.Options{
 | 
			
		||||
		HealthCheckFuncs: []*toolbox.HealthCheckFuncDesc{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user