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?
loading HTTPS page from an HTTP page using Ajax
Moderator: General Moderators
-
bajinganindy
- Forum Newbie
- Posts: 2
- Joined: Wed Aug 12, 2009 3:22 pm
Re: loading HTTPS page from an HTTP page using Ajax
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
I'm not sure, but maybe this will help http://nb.io/hacks/csshttprequest