Closed
Description
Hi all,
Typically if you do have server with sockets on another domain and you do simple first line io('YOUR_HOST')
, you will receive this message:
XMLHttpRequest cannot load YOUR_HOSTsocket.io/?EIO=3&transport=polling&t=1446467052356-0. No 'Access-Control-Allow-Origin'...
First appeared in head, that I need to look at documentation and find out how to set it from there, but eventually I did not find anything because of pure documentation.
Then I entered source code and the only 2 usages of setRequestHeader
method, which is actually allow you to do that, is only for setting content-type if POST method is chosen.
Could you help me to fix this issue?
Metadata
Metadata
Assignees
Labels
No labels