Skip to content

Allow embedding a subset of the Sourcegraph web app into iframes

Warren Gifford requested to merge rn/add-embed-route into main

Created by: novoselrok

This PR adds a new /embed route to the backend router, which allows embedding a small subset of our web app into iframes. Right now, it supports embedding notebooks, but it can be extended to support any unauthenticated section of our web app. Additionally, we could support authenticated embedded sections down the road, although that poses a greater security risk.

Demo of the functionality:

https://user-images.githubusercontent.com/6417322/152495161-2b79930c-62c9-4c8d-bd17-24ddc22aa885.mov

Merge request reports

Loading