web-socket icon indicating copy to clipboard operation
web-socket copied to clipboard

CORS error when using socket.io

Open pritamgb opened this issue 6 years ago • 0 comments

Trying to connect using socket.io but in the bowser console it see this message on apache server.

Failed to load http://localhost:3000/socket.io/?EIO=3&transport=polling&t=MLeLFBF: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. The response had HTTP status code 404.

pritamgb avatar Aug 23 '18 19:08 pritamgb