RStudio's embedded browser is not saving cookies

In the Shiny app I'm developing, one step requires logging to a remote server to browse files. The authentication procedure is designed so, that upon successful login, the sever responds with an authorization token and a cookie with session id. Both of them are required to be passed when performing subsequent requests to the server.

When testing the app in Chrome, everything works smoothly. When trying to use it in RStudio, where it's rendered with RStudio's embedded browser, the user is logged out immediately after a successful login with error message saying that user session has expired.

I have discovered that the root of the problem is that the RStudio's embedded browser is not saving the cookie with session ID. The storage tab in the inspector is empty.


Is there a way to change the RStudio's default browser or may there be a glitch in my thinking?

Do you have better luck with the preview release of RStudio? In v1.2 we're now using Chromium under the hood so this may well work out of the box for your case.

1 Like

I downloaded the RStudio 1.2 and it seems to be working fine. Thank you very much.

1 Like

This topic was automatically closed 7 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.