Hi greelgorke,

Thanks for your response. I tried adding 

res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With");

using the blog post at
http://john.sh/blog/2011/6/30/cross-domain-ajax-expressjs-and-access-control-allow-origin.html

Still doesn't work.

Thank you
Bhushan

On Tuesday, 19 March 2013 13:43:47 UTC+5:30, greelgorke wrote:
>
> connect to the same domain or send Access-Control-Allow-Origin headers. 
> read more here: 
> https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS
>
> Am Dienstag, 19. März 2013 05:26:55 UTC+1 schrieb Bhushan N.N:
>>
>> I am unable to get socket.io working on Chrome. I get the following 
>> error message. I have tried quite a few things that I found on stack 
>> overflow and google groups but unable to fix this issue. I am sure this 
>> is a common example for socket.io to setup a chat server and many people 
>> have it working. Any help will be great.
>>
>> XMLHttpRequest cannot load http://xx.xx.xx.xx
>> :8065/socket.io/1/?t=1363666905941<http://10.91.3.202:8065/socket.io/1/?t=1363666905941>.
>>  
>> Origin http://xx.xx.xx.xxx:8065 <http://injira01dev.in.moog.com/> is not 
>> allowed by Access-Control-Allow-Origin. 
>>
>> Thank you
>> Bhushan
>>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to