我正在尝试运行在另一个域的iframe中构建的Web应用程序。我可以在iframe中加载页面,但是页面上的所有ajax请求都会导致403错误,如下所示:
library("shiny")
ui <- fluidPage(
checkboxGroupInput(
inputId = "my_cbgi",
label = "Choose Something",
choiceNames = list(
tags$span("A", style = "color: red;"),
tags$span("B", style = "color: red;"),
tags$span("C", style = "color: blue;"),
tags$span("D", style = "font-weight: bold;")
),
choiceValues = c("A", "B", "C", "D")
)
)
server <- function(input, output) {
}
shinyApp(ui = ui, server = server)
对导致此错误的原因有何想法?
谢谢!