Page 1 of 1

Using Ajax in HTTPS

Posted: Wed Oct 10, 2007 10:50 am
by kendall
Hello,

I'm using Adobe's Spry's loadURL to send and recieve a response from a PHP script. using a "relative" url path.

when the page is loaded in https Spry gives me a (the spry content is actually being "included" into the page loaded via https)
Error: uncaught exception: Security Error: Content at https:// may not load data from http://

if the page was loaded via https why does Spry loadURL from http when the url path is set to relative?

the php script simply "prints $response;" if ajax request were in https is it safe to assume that the print response would be https as well?

Re: Using Ajax in HTTPS

Posted: Wed Oct 10, 2007 3:40 pm
by The Phoenix
kendall wrote:Hello,

I'm using Adobe's Spry's loadURL to send and recieve a response from a PHP script. using a "relative" url path.

when the page is loaded in https Spry gives me a (the spry content is actually being "included" into the page loaded via https)
Error: uncaught exception: Security Error: Content at https:// may not load data from http://

if the page was loaded via https why does Spry loadURL from http when the url path is set to relative?

the php script simply "prints $response;" if ajax request were in https is it safe to assume that the print response would be https as well?
Most likely the page includes both https items AND http items (extremely common on secure sites). That generates a warning (not an error) in most web browsers, but apparently it generates an error for spry.

As an example, if the page loaded images, it might come from a http url. (same for javascript, css, etc).

Posted: Wed Oct 10, 2007 3:47 pm
by kendall
phoenix(lol@ the dr. evil look)...

i was thinking the same thing....except that when i analyzed the error which stated
"that it may not load 'from' http"
i'm assuming that the "response" is being sent back as http and not https...

it this likely?