Alexandr Mucha
Alexandr Mucha
Hi, did you figure it out? I have the same problem after running docker compose according to the installation instructions.
Hi, thank you for your answer. When I used the default transport method, the connection failed even though I defined the origin correctly. From what I read, it was caused...
Thats the problem. It doesnt work even though I set this origin correctly. Access` to XMLHttpRequest at 'http://localhost:3000/socket.io/?EIO=4&transport=polling&t=P3kAbNS' from origin 'http://localhost:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header...
My server is running on port 3000 and I'm trying to connect from 8000, so I modified the command to include those addresses. `curl -v -H "origin: http://localhost:8000" "http://localhost:3000/socket.io/?EIO=4&transport=polling"` it...
and it returns the same thing when I try to set the origin to not allowed in the command
Also I dont see any cors header in network tab in devtools
@darrachequesne I tried adding the cors header manually and it works then, could there be a problem with adding the headers? Can you please check my nuxt socket.io plugin code...