Forum How do I...?

Font disappeared after Prince is installed on server

yiqing
Dear Tech Support:
I got an issue after I installed Prince on Ubuntu 18 server (nginx and uwsgi). The website font disappeared. In the browser console, there are quite a few error like below. Any help will be appreciated. Thanks.

Mixed Content: The page at 'https://xxxxx/xxxx/xxx/' was loaded over HTTPS, but requested an insecure font 'http://fonts.gstatic.com/s/sourcesanspro/v11/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidh18Smxg.woff2'. This request has been blocked; the content must be served over HTTPS.


How I installed it.
sudo apt-get install aptitude
sudo aptitude install gdebi
wget http://www.princexml.com/download/prince_12.2-1_ubuntu18.04_amd64.deb
sudo gdebi prince_12.2-1_ubuntu18.04_amd64.deb



Best regards,
Yiqing
mikeday
The browser console? This error is not coming from Prince, so how is Prince involved?
yiqing
Hi Mike,
Thanks for the quick reply. The server served context correctly couple hours ago. After I installed Prince on server, and restart service, then I got a few mixed content error. I am not 100% sure that if anyone would do a server config during that period. =P

My server has firewall rule for external link. I am wondering if any possible case would cause issue. For example, Prince requires external link in installation process and it was blocked by firewall. Or might Prince modify system default font?
mikeday
Prince does not modify system fonts or configuration files, and the install does not require network access.

Perhaps your server config was edited sometime since the last server restart?
mikeday
Also you can change your site to direct to https://fonts.gstatic.com, or simply use //fonts.gstatic.com so that it goes to http or https depending on the current page.