I have a backend in c# that connects via HTTP requests and also via a Websocket request to a NextJS client.
On a windows environment everything works fine, but on a Mac with VS Code, the Websocket connection doesn’t work and I have this error in the console (Chrome console) :
ConnexionContext.tsx:87 WebSocket connection to 'ws://localhost:8080/ws' failed:
I have tried it on Chrome, Firefox and Safari and none of them would work.
C# version : 8