Skip to content

Commit

Permalink
fix: socket io protocol error
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffroy Empain committed Mar 5, 2021
1 parent 581e3ca commit 6e414a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/socket/create-io-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export function createIoServer(httpServer: HttpServer) {
* https://github.com/socketio/socket.io/issues/3259#issuecomment-474523271
*/
pingTimeout: 60000,
allowEIO3: true,
cors: {
origin: env.MELI_UI_URL,
methods: ['GET', 'POST'],
// methods: ['GET', 'POST'],
credentials: true,
},
});
Expand Down

0 comments on commit 6e414a0

Please sign in to comment.