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

Closed
adityaravishankar opened this Issue Apr 18, 2012 · 1 comment

Projects

None yet

1 participant

@adityaravishankar

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

Will something like this work?

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment