Skip to content

Commit 5f5faf7

Browse files
committed
allow cors
1 parent bb473b4 commit 5f5faf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/socket.io/v4/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ const httpServers = [
8686
transports: ["polling"],
8787
pingInterval: 5000,
8888
pingTimeout: 10000,
89+
cors: {
90+
origin: '*',
91+
methods: ['GET', 'POST']
92+
}
8993
},
9094
onCreated: template.registerEvents
9195
},

0 commit comments

Comments
 (0)