mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 10:48:37 +00:00
fmt
This commit is contained in:
@@ -18,10 +18,10 @@ var CORSConfig = struct {
|
|||||||
AllowCredentials bool
|
AllowCredentials bool
|
||||||
Headers []string
|
Headers []string
|
||||||
}{
|
}{
|
||||||
AllowDomain: []string{"*"},
|
AllowDomain: []string{"*"},
|
||||||
Methods: []string{"GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
|
Methods: []string{"GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
|
||||||
Headers: []string{"Content-Type", "User-Agent"},
|
Headers: []string{"Content-Type", "User-Agent"},
|
||||||
MaxAge: 10 * time.Minute,
|
MaxAge: 10 * time.Minute,
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadCorsFrom(rootCfg ConfigProvider) {
|
func loadCorsFrom(rootCfg ConfigProvider) {
|
||||||
|
Reference in New Issue
Block a user