mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 18:16:48 +08:00
修复mac手机版客户端重连的问题
This commit is contained in:
@@ -84,6 +84,7 @@ func authMiddleware(next http.Handler) http.Handler {
|
||||
w.Header().Set("Access-Control-Allow-Methods", "GET,POST,OPTIONS")
|
||||
w.Header().Set("Access-Control-Allow-Headers", "*")
|
||||
if r.Method == http.MethodOptions {
|
||||
// w.WriteHeader(http.StatusOK)
|
||||
// 正式环境不支持 OPTIONS
|
||||
w.WriteHeader(http.StatusForbidden)
|
||||
return
|
||||
|
Reference in New Issue
Block a user