simplewebrtc / signalmaster

simple socket.io server for webrtc signaling
Other
1.31k stars 486 forks source link

No 'Access-Control-Allow-Origin' header is present on the requested resource #25

Closed ScrewChineseCommunist closed 8 years ago

ScrewChineseCommunist commented 10 years ago

Trying to configure my own signalmaster server and worked for a while. But after I messed up pip3 with pip2 and reinstall ubuntu and update to socket.io@1.04, it doesn't work. I updated all dependent files:

  1. npm update yetify getconfig node-uuid crypto socket.io
  2. latest signalmaster/SimpleWebRTC, even tried the latest socket.io client Totally failed. It seems to be a very common issue for socket.io@1.04 https://github.com/Automattic/socket.io-client/issues/641 Please tell me what version of socket.io signaling.simplewebrtc.com used.
ScrewChineseCommunist commented 10 years ago

Error Message: XMLHttpRequest cannot load http://10.0.0.11:8888/socket.io/1/?t=1402608669424. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://10.0.0.11:8080' is therefore not allowed access.

ScrewChineseCommunist commented 10 years ago

Have tried to modify origins in server.js of signalmaster with all the solutions listed and totally failed.

legastero commented 10 years ago

signalmaster and simplewebrtc require using socket.io 0.9.16.

ScrewChineseCommunist commented 10 years ago

But how to switch/revert to old version of socket.io? I have searched and got nothing.

lazd commented 10 years ago

@legastero, thanks, I didn't realize this would happen when updating to socket.io-client 1.0.6!