Page 1 of 1

loading HTTPS page from an HTTP page using Ajax

Posted: Thu Aug 13, 2009 7:55 am
by bajinganindy
Hello,
i'm fairly new to ajax. I have a page, 1.php, that loads 2.php using ajax. 2.php is protected by ssl and basic authentication, and 1.php is an unprotected page.
i've been trying to load 2.php using https with no luck.

if 1.php is loaded using https, 2.php would load up just fine(prompt user for username and password). however if 1.php is loaded using HTTP, the call to 2.php using HTTPS won't work using XMLHttpRequest.open

could someone point me to a right direction?

Re: loading HTTPS page from an HTTP page using Ajax

Posted: Thu Aug 13, 2009 1:42 pm
by kaszu
XMLHttpRequest won't work just like in case of different domain (cross-domain policy).
I'm not sure, but maybe this will help http://nb.io/hacks/csshttprequest