Add headers for static serving

This commit is contained in:
Winston Chang
2018-11-20 12:25:10 -06:00
parent c338448997
commit fec706d134

View File

@@ -400,11 +400,12 @@ startApp <- function(appObj, port, host, quiet) {
)
httpuvApp$staticPathOptions <- httpuv::staticPathOptions(
html_charset = "utf-8",
headers = list("X-UA-Compatible" = "IE=edge,chrome=1"),
validation =
if (!is.null(getOption("shiny.sharedSecret"))) {
sprintf('"Shiny-Shared-Secret" == "%s"', getOption("shiny.sharedSecret"))
} else {
NULL
character(0)
}
)