sbstjn / noduino

JavaScript and Node.js Framework for controlling Arduino with HTML and WebSockets
http://sbstjn.github.io/noduino/
1.23k stars 232 forks source link

XMLHTTPRequest: Access-Control-Allow-Origin #12

Open yinyinhe opened 11 years ago

yinyinhe commented 11 years ago

Hi,

Noduino looks very interesting, thanks for creating it.

I'm trying to get everything set up but having an issue with Access-Control-Allow-Origin. Here's the console output when I try to run srv.web.js:

["info", "connecting to noduino"] Logger.js:25 ["info", "sending command through socket"] Logger.js:25 ["socket-write", "board.connect: undefined"] Logger.js:25 XMLHttpRequest cannot load http://localhost:8090/socket.io/1/?t=1351489542224. Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.

I also notice that board.connect is undefined. I also get this error when I try the blinkled example but it works.

Thanks in advance for help,

Yin