I would like to embed my shiny apps running on shinyproxy into a website running out of a different server. I’ve tried using iframes, but shinyproxy seems to have its ‘X-Frame-Options’ value set to ‘SAMEORIGIN’, with no obvious way to change it in order to allow for connections from my web server.
For more advanced embedding of Shiny apps in websites or larger applications, there is now (with ShinyProxy 2.0.0) a dedicated API to manage proxies; see https://www.shinyproxy.io/configuration/#proxy-api
I’ve managed to review the api endpoint documentation. Could you please provide some context on how this [API] would work in practice? For example, I have a website built in django with tiles that point to different applications. It would be nice to have one of those tiles point to a docker application that shinyproxy will launch (example: proxyspecid=execdash). Should clicking the tile make a post request to the /proxy/execdash endpoint to launch a docker container? If so, upon sending the request, should I capture the proxy id from the response, and then have the tile point to a page that renders shinyproxyhost:port/endpoint/proxy-id inside an iframe? Thanks for getting the API out, I’d just like to understand how to make best use of your endpoints.
@dickoah No, unfortunately not. Still awaiting response from @fmichielssen or someone else at open analytics on how to use their API. I’m pretty ignorant on how to best leverage their api and I find the documentation pretty bare-bones. If you figure anything out or have any ideas, please let me know.
Hi,
is there any tutorial/guide that provides information on how to integrate a Shiny App hosted with ShinyProxy (in my case on an AWS EC2 instance) into another website via an iframe? Could not find any related content besides this thread.
Thank you and best,
Tobias