Free Support Forum - groupdocs.com

Issue using groupdocs viewer behind SSL


#1

Hi,


I have the groupdocs viewer working properly, however when I navigate to my site using https I get an error in the web developer tools saying :

"My page was loaded over HTTPS, but requested an insecure script ‘http://…/GetJsHandler?script=libs/jquery-1.9.1.min.js’. This request has been blocked; the content must be served over HTTPS."

Is there a fix for this issue ?

#2
Hello John,

Thank you for your inquiry.

You can avoid this issue if you will configure your applicationPath parameter with HTTPS prefix and in such case the GroupDocs.Viewer for Java library will send requests to this url .

Try do this in application.properties file :

applicationPath: https://127.0.0.1:8080/

and in the web developer tools you will see that the Viewer will send all requests to HTTPS , as shown on screenshot(http://prntscr.com/9cjd44).

If you will have more questions please feel free to contact us.

--------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+