R Shiny rCharts https server does not download fonts.googleapis.com

I got a brilliant https server, and I tried using rCharts to build dTable so that I could sort multiple columns from dataTables (see https://stackoverflow.com/a/168648/ ).

What I could subtract from Console output and this explanation ( http://yoast.com/wordpress-ssl-setup/ ) is that this rCharts table is trying to download fonts from fonts.googleapis.com via templates / default.html in brilliant:

[blocked] The page at 'https://my.server.com/shiny/shiny_dev/' was loaded over HTTPS, but ran insecure content from 'http://fonts.googleapis.com/css?family=Source+Code+Pro': this content should also be loaded over HTTPS.

Any ideas how to fix this without admin access to a brilliant server?

Can I override fonts that have been loaded into my code server.Ror ui.R?

+3
source share
1 answer

You can try manually downloading the font on top of https, which also supports Google Fonts.

 ui = bootstrapPage(
    tags$link(
      rel = "stylesheet", 
      href="https://fonts.googleapis.com/css?family=Source+Code+Pro"
    ),
    tags$style("h1{font-family: 'Source Code Pro'}"),
    tags$h1("Test Font"),
    numericInput('n', 'Number of obs', 100),
    plotOutput('plot')
  )
+1
source

All Articles