Access to XMLHttpRequest at from origin has been blocked by CORS policy No ‘Access-Control-Allow-Origin’ header is present on the requested resource
Javascript beginner, I’m trying to incorporate WebSockets into my project via socket.io, but I’m having issues getting my clientside to communicate with my server. My server is running on port 3000 and I’m running my app on port 5001 via Live Server. But, I am getting this error: Access to XMLHttpRequest at ‘http://localhost:3000/socket.io/?EIO=4&transport=polling&t=Oz_5Qur’ from origin ‘http://127.0.0.1:5001’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.