Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix URL for docs.google.com #213

Merged
merged 1 commit into from
Aug 6, 2017
Merged

Fix URL for docs.google.com #213

merged 1 commit into from
Aug 6, 2017

Conversation

abnerjacobsen
Copy link
Contributor

In the filemanager.js file, at line 906, the Google viewer is accessed using HTTP:

ViewerObject.url = 'http://docs.google.com/viewer?url=' + encodeURIComponent (createPreviewUrl (resourceObject, false)) + '& embedded = true';

Due to this when using the RichFilemanager in servers that force the use of HTTPS can occur problems in the visualization like the one below:

Mixed Content: The page at 'https://fm.svc.daspanel.site/' was loaded over HTTPS, but requested an insecure resource 'http://docs.google.com/viewer?url=https%3A%2F%2Ffm.svc.daspanel.site%2Fconn…_condominio_Abner_L._01_Q._51-FB.docx%26time%3D1501967130794&embedded=true'. This request has been blocked; the content must be served over HTTPS.

@psolom psolom merged commit 601e9c2 into psolom:master Aug 6, 2017
@psolom
Copy link
Owner

psolom commented Aug 6, 2017

thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants