diff --git a/src/context/notifications.tsx b/src/context/notifications.tsx index 3c519752..f0476e43 100644 --- a/src/context/notifications.tsx +++ b/src/context/notifications.tsx @@ -96,7 +96,7 @@ export const NotificationsProvider = (props: { children: JSX.Element }) => { if (isAuthenticated()) { loadNotifications() - await fetchEventSource('https://connect.discours.io', { + await fetchEventSource('https://chat.discours.io/connect', { method: 'GET', headers: { 'Content-Type': 'application/json', diff --git a/src/graphql/privateGraphQLClient.ts b/src/graphql/privateGraphQLClient.ts index b39305ac..375001e1 100644 --- a/src/graphql/privateGraphQLClient.ts +++ b/src/graphql/privateGraphQLClient.ts @@ -38,7 +38,7 @@ const options: ClientOptions = { if (!token) { console.error('[privateGraphQLClient] fetchOptions: token is null!') } - const headers = { Authorization: 'Bearer ' + token } + const headers = { Authorization: token } return { headers } }, exchanges