我运行了一个闪亮的 https 服务器,我尝试使用 rCharts 绘制 dTable,以便我可以从数据表中进行多列排序(请参阅https://stackoverflow.com/a/20956772/719016 https://stackoverflow.com/a/20956772/719016).
我可以从控制台输出和这个解释中推断出什么(http://yoast.com/wordpress-ssl-setup/ http://yoast.com/wordpress-ssl-setup/)是这个 rCharts 表试图通过闪亮的 templates/default.html 从 fonts.googleapis.com 加载字体:
[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.
有什么想法如何在没有管理员访问闪亮服务器的情况下解决这个问题吗?
我可以覆盖尝试加载到我的字体中的字体吗?server.R
or ui.R
code?
您可以尝试通过 https 手动加载字体,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')
)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)