Add back cookie support for CORS and WS.
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user