RaspberryPiFoundation / editor-ui

Code Editor web component
https://editor-static.raspberrypi.org
Apache License 2.0
37 stars 8 forks source link

Enable allowed external iframe src's #985

Closed sra405 closed 2 months ago

sra405 commented 2 months ago

As part of project migration from trinket to the code editor some additional functionality is required. This PR enables iframes to be used from the same approved external sources list as used for href's and other src attributes. By expanding this to allow for self references (i.e. src with a value the same as the PUBLIC_URL) users can embed other projects they (or we) own in iframes into their projects

github-actions[bot] commented 2 months ago
github-actions[bot] commented 2 months ago
sra405 commented 2 months ago

Allows iframes to be embedded if they're on the same domain as the editor or on rpf.io image