I have read that you cannot make an ajax call from an http served page to an https page. But how does reddit do this?
When you click log in it makes an ajax call to https://ssl.reddit.com/api/login
When I try to do this on a local test machine firebug comes back with the status as ‘aborted’ in the NET tab.
It uses CORS here are the headers from
https://ssl.reddit.com/api/login/tester