Wat is Iframe Sandbox & Allow Generator?
Iframe Sandbox & Allow Generator is een browsertool voor deze taak: Genereer veilige iframe markup met sandbox vlaggen en allow permissies per embedtype. De uitvoer blijft leesbaar, zodat je die kunt controleren voordat je hem publiceert.
Quick answer
Use the sandbox attribute on iframes to restrict what the embedded content can do -- such as submitting forms, opening popups, or running scripts. Add allow values one at a time and only as needed.
Limitations
- The sandbox attribute does not protect against clickjacking on the parent page. Use a Content-Security-Policy with frame-ancestors for that.
- Some iframe features, such as storage access and top-level navigation, behave differently across browsers when sandbox is applied.
- Removing sandbox does not retroactively expose APIs -- the iframe must be reloaded for sandbox changes to take effect.
Zo gebruik je deze tool
- Open de tool en vul de relevante waarden in.
- Controleer de uitvoer in het resultaatpaneel.
- Kopieer alleen het deel dat bij je página past.
- Test de wijziging voordat je publiceert.
Waarvoor je het kunt gebruiken
- Terugkerend publicatiewerk sneller afronden.
- Markup, CSS of checklists voorbereiden voor een launch.
- Kleine fouten vermijden die bij statische sites makkelijk worden gemist.