mirror of
https://github.com/ZeroCatDev/ClassworksKV.git
synced 2025-12-07 13:03:09 +00:00
feat: 更新Socket.IO CORS设置,支持更多HTTP方法
This commit is contained in:
parent
1e1b99a070
commit
b782945674
@ -100,7 +100,7 @@ export function initSocket(server) {
|
|||||||
io = new Server(server, {
|
io = new Server(server, {
|
||||||
cors: {
|
cors: {
|
||||||
origin: "*",
|
origin: "*",
|
||||||
methods: ["GET", "POST"],
|
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
|
||||||
allowedHeaders: ["*"],
|
allowedHeaders: ["*"],
|
||||||
credentials: false
|
credentials: false
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user