diff --git a/src/app/services/socketio-connect.service.ts b/src/app/services/socketio-connect.service.ts index 0c2cee1b..147ca8c2 100644 --- a/src/app/services/socketio-connect.service.ts +++ b/src/app/services/socketio-connect.service.ts @@ -23,6 +23,7 @@ export class SocketioConnectService { // connect to tasks namespace const namespace = '/tasks'; this.socket = io(`${environment.server_url}${namespace}`, { + withCredentials: true, extraHeaders: { Authorization: `Bearer ${token}` }