From 6ac7fb84525c61cb9d3df29bca084d0eea3f5bfd Mon Sep 17 00:00:00 2001 From: Tasko Olevski Date: Fri, 3 Sep 2021 15:12:14 +0200 Subject: [PATCH] fix: allow rstudio to run in an iframe --- docker/r/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/r/Dockerfile b/docker/r/Dockerfile index 363bc9ac..7ac29201 100644 --- a/docker/r/Dockerfile +++ b/docker/r/Dockerfile @@ -78,7 +78,9 @@ RUN fix-permissions.sh /usr/local/lib/R && \ chown 1000:1000 /opt/conda && \ usermod -a -G users rstudio && \ # this hack lets some of the setup from the base renku image work here - ln -s /home/${NB_USER} /home/jovyan + ln -s /home/${NB_USER} /home/jovyan && \ + # this allows rstudio to run in an iframe in the UI + echo "\nwww-frame-origin=same\n" >> /etc/rstudio/rserver.conf USER ${NB_USER}