mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
Add headers for static serving
This commit is contained in:
@@ -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)
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user