fix: 修改 CORS, 删除 开发代理
This commit is contained in:
@@ -24,9 +24,9 @@ func SetupRouter() *gin.Engine {
|
||||
}
|
||||
r := gin.Default()
|
||||
r.Use(cors.New(cors.Config{
|
||||
AllowOrigins: []string{"*.kmux.cn"},
|
||||
AllowOrigins: []string{"*.kmux.cn*"},
|
||||
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH"},
|
||||
AllowHeaders: []string{"X-Session-Id"},
|
||||
AllowHeaders: []string{"*", "X-Session-Id"},
|
||||
ExposeHeaders: []string{"Content-Length"},
|
||||
AllowCredentials: true,
|
||||
MaxAge: 12 * time.Hour,
|
||||
|
||||
Reference in New Issue
Block a user