1
0
Fork 0
forked from forgejo/forgejo

Merge branch 'rebase-forgejo-branding' into forgejo

This commit is contained in:
Earl Warren 2024-01-15 18:28:27 +00:00
commit 691e4f3253
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
132 changed files with 1321 additions and 333 deletions

View file

@ -58,7 +58,7 @@
// description: Sudo API request as the user provided as the key. Admin privileges are required.
// TOTPHeader:
// type: apiKey
// name: X-GITEA-OTP
// name: X-FORGEJO-OTP
// in: header
// description: Must be used in combination with BasicAuth if two-factor authentication is enabled.
//
@ -859,7 +859,7 @@ func Routes() *web.Route {
AllowedOrigins: setting.CORSConfig.AllowDomain,
AllowedMethods: setting.CORSConfig.Methods,
AllowCredentials: setting.CORSConfig.AllowCredentials,
AllowedHeaders: append([]string{"Authorization", "X-Gitea-OTP"}, setting.CORSConfig.Headers...),
AllowedHeaders: append([]string{"Authorization", "X-Gitea-OTP", "X-Forgejo-OTP"}, setting.CORSConfig.Headers...),
MaxAge: int(setting.CORSConfig.MaxAge.Seconds()),
}))
}