Yes @auth.requires_login(), after removing it works.
But ...
How can I protect my pages when I want to use the viewer?


Op vrijdag 25 september 2015 05:29:07 UTC+2 schreef Massimo Di Pierro:
>
> Is there any @auth.require* protection for the url that serves the xls 
> document? The viewer is a google app and it does not share your 
> credentials. It wants the doc to be public.
>
> On Wednesday, 23 September 2015 08:50:35 UTC-5, A3 wrote:
>>
>> Hi Massimo: 
>> I tried it: browser is no longer complaining about mixed content but ..
>> the viewer is not showing anything.
>> I tried to open the document in the viewer using the rendered link:
>>
>> https://docs.google.com/viewer?url=https://www.myserver.com/application/default/index/3/testexcel.xls&embedded=true
>> This shows a document with the HTML login page?  
>> It seems web2py doesn't want to pass the excel document to the viewer?
>>
>>
>>  
>>
>> Op donderdag 20 augustus 2015 21:00:58 UTC+2 schreef Massimo Di Pierro:
>>>
>>> Made a change in master branch that uses https instead of http for this. 
>>> Please try it.
>>>
>>> On Wednesday, 19 August 2015 16:39:14 UTC-5, A3 wrote:
>>>>
>>>> Hi, I tried to use the Simple Wiki and found the following problem:
>>>> I uploaded an excel file in page media.
>>>> On the wiki page I used the link to the uploaded file: 
>>>> @////3/testexcel.xls
>>>> When i look at the page i get an empty square.   
>>>> I am using Chrome: when I inspect the element, is shows:  
>>>> Mixed Content: The page at 'https://_____.
>>>> pythonanywhere.com/controller/default/index/page#' was loaded over 
>>>> HTTPS, but requested an insecure resource '
>>>> http://docs.google.com/viewer?url=https%3A//f____.pythonanywhere.com/controller/default/index/3/testexcel.xls&embedded=true'.
>>>>  
>>>> This request has been blocked; the content must be served over HTTPS.  
>>>>
>>>> hope anybody can help.
>>>> regards Adri
>>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to