From b7829456747aa116ae211876349c139c7644fe42 Mon Sep 17 00:00:00 2001 From: Sunwuyuan Date: Sat, 6 Dec 2025 11:54:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0Socket.IO=20CORS?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=EF=BC=8C=E6=94=AF=E6=8C=81=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?HTTP=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/socket.js b/utils/socket.js index 1cda0f4..6812522 100644 --- a/utils/socket.js +++ b/utils/socket.js @@ -100,7 +100,7 @@ export function initSocket(server) { io = new Server(server, { cors: { origin: "*", - methods: ["GET", "POST"], + methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', allowedHeaders: ["*"], credentials: false },