Deployment Option for Reading HTTPOnly Cookie from R Shiny Application

I'm trying to read HTTPOnly cookie from shiny application and add some rules based on it. I've tried session$request$HTTP_COOKIE which works fine in rstudio, but fails at shiny server as it drops some HTTP headers. I've tried ShinyProxy with rocker/shiny-verse docker image, it fails too.

Is there any way to achieve the functionality with some other docker image? Any kind of guideline would be very much helpful.