Problem with LOAD helper

131 views
Skip to first unread message

Adam

unread,
Oct 4, 2011, 5:19:31 PM10/4/11
to web2py-users

Hi.
Why LOAD helper does not work when my browser url is set at
http://someapp.appspot.com/app, while my ajax request url is
https://someapp.appspot.com/app/user.load/login?

{{=LOAD(ajax=True, target='target1', url='https://someapp.appspot.com/
app/user.load/login')}}

but when everything goes over https it works.

pbreit

unread,
Oct 4, 2011, 5:28:51 PM10/4/11
to web...@googlegroups.com
It can be a problem mixing http and https on one page. Browsers may block or warn about such a thing. Is that what you mean?

One technique to support both http and https is to specify a URL like this:


I'm not sure this works with LOAD() but might be worth a try.

Anthony

unread,
Oct 4, 2011, 5:32:40 PM10/4/11
to web...@googlegroups.com
I think that's a violation of the same origin policy (same origin requires same protocol) and will likely be blocked by the browser (http://en.wikipedia.org/wiki/Same_origin_policy).

Anthony
Reply all
Reply to author
Forward
0 new messages