Flotype / now

NowJS makes it easy to build real-time web apps using JavaScript
http://www.nowjs.com
MIT License
1.92k stars 175 forks source link

Access-Control-Allow-Origin error cropping up #196

Closed adityaravishankar closed 12 years ago

adityaravishankar commented 12 years ago

XMLHttpRequest cannot load http:// /socket.io/1/?t=1334761336615.

Origin is not allowed by Access-Control-Allow-Origin.

Is there any way to tell now to allow specific origins?

Socket.io does have a configurable origins that defaults to * : *, Not sure why this error is cropping up.

adityaravishankar commented 12 years ago

Will something like this work?

var nowjs = require ("now");
nowjs.options.socketio.origins ='www.mydomain.com:*';

Update: Yep.. That works... Closing the issue :)