mirror of
https://github.com/go-gitea/gitea
synced 2025-11-08 23:38:13 +00:00
Move cors.X_FRAME_OPTIONS to security.X_FRAME_OPTIONS and add false option
This commit is contained in:
@@ -17,13 +17,11 @@ var CORSConfig = struct {
|
||||
MaxAge time.Duration
|
||||
AllowCredentials bool
|
||||
Headers []string
|
||||
XFrameOptions string
|
||||
}{
|
||||
AllowDomain: []string{"*"},
|
||||
Methods: []string{"GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
|
||||
Headers: []string{"Content-Type", "User-Agent"},
|
||||
MaxAge: 10 * time.Minute,
|
||||
XFrameOptions: "SAMEORIGIN",
|
||||
}
|
||||
|
||||
func loadCorsFrom(rootCfg ConfigProvider) {
|
||||
|
||||
Reference in New Issue
Block a user