I am creating a feature for my website where people can live chat with me. In order to do this, I built the regular part of the site with php and apache, and the chat server with node.js (using socket.io and express). When people go to our site, there is a little bar that slides out from the side if they want to chat with me (in the same window, not a popup). With the chat server running, I see the client trying to connect:
info - socket.io started
Express server listening on port 8000 in development mode
debug - client authorized
info - handshake authorized 776963641537662118
It doesn't go any further, trying to connect via websockets or XHR, and I get the following error on the client side in the console:
XMLHttpRequest cannot load http://wundertutor.com:8000/socket.io/1/?t=1356208544112. Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
Also, I have this in my .htaccess file:
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>