Groups
Groups
Sign in
Groups
Groups
web2py-users
Conversations
Labels
About
Send feedback
Help
Problem with LOAD helper
131 views
Skip to first unread message
Adam
unread,
Oct 4, 2011, 5:19:31 PM
10/4/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
10/4/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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:
url='//
mysite.com/index.html
'
I'm not sure this works with LOAD() but might be worth a try.
Anthony
unread,
Oct 4, 2011, 5:32:40 PM
10/4/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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