Accessing custom HTTP headers within the Shiny App

The request from Nginx lands an authentication module first and then later goes to the Shiny App. In the authentication module, I want to set an additional header and access that header within the Shiny App. I'm printing all the info contained in the session$request here.

server <- function(input, output, session) {

  output$summary <- renderText({
    ls(env=session$request)
  })

I see some of the headers like HTTP_CONNECTION , HTTP_HOST etc getting printed here, however I'm not seeing the custom header that I had set in the authentication module here. Does Shiny Server support accessing the custom http headers also or is there some restrictions on the headers that are available in session$request ?

Saw from the documentation that the headers need to be whitelisted and this feature is available only in the professional edition. Section 4.10 in this link - https://docs.rstudio.com/shiny-server/

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.