Skip to content

Commit 485acf9

Browse files
committed
remove missed header
1 parent 7a5a959 commit 485acf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ func Routes() *web.Route {
605605
// setting.CORSConfig.AllowSubdomain // FIXME: the cors middleware needs allowSubdomain option
606606
AllowedMethods: setting.CORSConfig.Methods,
607607
AllowCredentials: setting.CORSConfig.AllowCredentials,
608-
AllowedHeaders: []string{"Authorization", "X-CSRFToken", "X-Gitea-OTP"},
608+
AllowedHeaders: []string{"Authorization", "X-Gitea-OTP"},
609609
MaxAge: int(setting.CORSConfig.MaxAge.Seconds()),
610610
}))
611611
}

0 commit comments

Comments
 (0)