I have spent two days on this. Hoping someone has the answer.
I have an apache server running SSL on port 443. I have a node.js server running SSL on port 8081.
In the client, I am trying to include the socket.io/socket.io.js file as follows:
<script src="https://my_url.com:8081/socket.io/socket.io.js"></script>
I don't get a 404 (not found). In the Chrome javascript console, I get Status = (failed) and Type = undefined. I have tried suggestions I've found (using src="localhost.." etc, but they don't work either).
It works for my http version. I include the file like this:
<script src="http://my_url.com:8080/socket.io/socket.io.js"></script>
Not sure why the SSL version is not working. Any ideas? Thanks in advance!!
from your comment i guess you have a CORS problem:
http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
If you change protocoll the origin is not the same following the same origin policy. You have to include a header for this.
The warning about insecure content is a hint what caused the problem: You are trying to access an origin via script which is not the origin of the script. This is a security issue as it may provide a leak allowing harmful scripts to be injected into the page