Add back cookie support for CORS and WS.

This commit is contained in:
Patrick Fic
2022-06-09 10:24:03 -07:00
parent 447298c07d
commit fa1dbc2611
2 changed files with 3 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ export const socket = SocketIO(
: window.location.origin,
{
path: "/ws",
withCredentials: true,
auth: async (callback) => {
const token = auth.currentUser && (await auth.currentUser.getIdToken());
callback({ token });