Processing User Group Cookies

Is there a way to process cookies before they are handed to the Shiny server. I am running into an issue with unusually long user groups 22,152 characters. It works fine in R/Shiny, but not in Shiny for Python. I am already using an edge router to clean up third party cookies, but this one is between ShinyProxy and Shiny for Python and isn’t allowing the connection to form, though the user is able to connect fine with R/Shiny.

Not to cross post, but I have already posted an issue in Shiny for Python, where I think the issue originates, and I was just wondering if there was a way to use a Spel expression or something to process all these roles before they get there.

Hi, by default ShinyProxy should not create cookies that contain all groups of the user, so I’m not sure where this cookie originates from.

Cookies are sent as a header, and using the http-headers configuration, you can override these headers (Configuration | ShinyProxy). For example, to send an empty cookie header:

  - id: "01-hello"
    container-image: openanalytics/shinyproxy-demo
    http-headers:          
       Cookie: ""

Note that this expression is only evaluated once, during startup of the app. Therefore I don’t advice to really change the contents of the header, but to only sent an empty header.