mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Backport #24206 by @wxiaoguang Document: ``` ;ALLOW_DOMAIN = * ;METHODS = GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS ``` Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -21,9 +21,10 @@ var CORSConfig = struct { | ||||
| 	Headers          []string | ||||
| 	XFrameOptions    string | ||||
| }{ | ||||
| 	Enabled:       false, | ||||
| 	MaxAge:        10 * time.Minute, | ||||
| 	AllowDomain:   []string{"*"}, | ||||
| 	Methods:       []string{"GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"}, | ||||
| 	Headers:       []string{"Content-Type", "User-Agent"}, | ||||
| 	MaxAge:        10 * time.Minute, | ||||
| 	XFrameOptions: "SAMEORIGIN", | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Giteabot
					Giteabot