Add CORS policy on the websocket server

This commit is contained in:
Oliver-Akins 2022-01-04 21:17:07 -07:00
parent 76442fddce
commit 9c5e0ab4d9

View file

@ -31,5 +31,10 @@ export default async function() {
}; };
}); });
io.listen(config.server.port); io.listen(config.server.port, {
cors: {
origin: ["http://localhost:3000"],
credentials: true,
}
});
}; };