飒爽师叔
当我使用新版panel对接旧版wings时,wings的dbug模式一直提示报错,您知道是什么问题吗,我是否需要忽略这个错误呢:
DEBUG: [Aug 27 17:20:11.491] non-server error encountered while handling HTTP request error=websocket: request origin not allowed by Upgrader.CheckOrigin error_id=37f579ff-adda-454d-8f2a-e782f02e7fe6 server=191a729f-c238-4ba9-bd37-6bd7a544fee5
Stacktrace:
websocket: request origin not allowed by Upgrader.CheckOrigin
github.com/pterodactyl/wings/router.(*RequestError).AbortWithStatus
/home/runner/work/wings/wings/router/error.go:106
github.com/pterodactyl/wings/router.(*RequestError).Abort
/home/runner/work/wings/wings/router/error.go:119
github.com/pterodactyl/wings/router.getServerWebsocket
/home/runner/work/wings/wings/router/router_server_ws.go:37
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/pterodactyl/wings/router/middleware.ServerExists.func1
/home/runner/work/wings/wings/router/middleware/middleware.go:285
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/pterodactyl/wings/router/middleware.AttachApiClient.func1
/home/runner/work/wings/wings/router/middleware/middleware.go:178
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/pterodactyl/wings/router/middleware.AttachServerManager.func1
/home/runner/work/wings/wings/router/middleware/middleware.go:169
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/pterodactyl/wings/router/middleware.SetAccessControlHeaders.func1
/home/runner/work/wings/wings/router/middleware/middleware.go:262
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/pterodactyl/wings/router/middleware.CaptureErrors.func1
/home/runner/work/wings/wings/router/middleware/middleware.go:195
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/pterodactyl/wings/router/middleware.AttachRequestID.func1
/home/runner/work/wings/wings/router/middleware/middleware.go:160
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
/opt/hostedtoolcache/go/1.18.7/x64/src/net/http/server.go:2916
net/http.(*conn).serve
/opt/hostedtoolcache/go/1.18.7/x64/src/net/http/server.go:1966
runtime.goexit
/opt/hostedtoolcache/go/1.18.7/x64/src/runtime/asm_amd64.s:1571