mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
allow cors from loopback addresses in debug mode (#9)
This commit is contained in:
1 parent
ad1c9567ef
commit
35126fa700
4 files changed
+43
-6
No files matched your search
@@ -76,7 +76,7 @@ func terminalStream(c *gin.Context) (any, error) {
|
||||
|
||||
wsConn, err := upgrader.Upgrade(c.Writer, c.Request, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, newWsError("%v", err)
|
||||
}
|
||||
defer wsConn.Close()
|
||||
conn := websocketx.NewConn(wsConn)
|
||||
|
||||
Reference in new issue
Block a user