1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 10:48:37 +00:00
This commit is contained in:
silverwind
2024-04-03 01:45:21 +02:00
parent aace6002ee
commit bd4559c4cd

View File

@@ -18,10 +18,10 @@ var CORSConfig = struct {
AllowCredentials bool
Headers []string
}{
AllowDomain: []string{"*"},
Methods: []string{"GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
Headers: []string{"Content-Type", "User-Agent"},
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,
}
func loadCorsFrom(rootCfg ConfigProvider) {