mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Use gitea forked macaron (#7933)
Signed-off-by: Tamal Saha <tamal@appscode.com>
This commit is contained in:
		
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							ca6fb004ac
						
					
				
				
					commit
					171b359877
				
			| @@ -9,7 +9,7 @@ import ( | ||||
|  | ||||
| 	"code.gitea.io/gitea/modules/log" | ||||
|  | ||||
| 	"github.com/go-macaron/cors" | ||||
| 	"gitea.com/macaron/cors" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
| @@ -28,7 +28,7 @@ func newCORSService() { | ||||
|  | ||||
| 	CORSConfig = cors.Options{ | ||||
| 		Scheme:           sec.Key("SCHEME").String(), | ||||
| 		AllowDomain:      sec.Key("ALLOW_DOMAIN").String(), | ||||
| 		AllowDomain:      sec.Key("ALLOW_DOMAIN").Strings(","), | ||||
| 		AllowSubdomain:   sec.Key("ALLOW_SUBDOMAIN").MustBool(), | ||||
| 		Methods:          sec.Key("METHODS").Strings(","), | ||||
| 		MaxAgeSeconds:    int(maxAge.Seconds()), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user