Feature request: provide a way to customize Glitch embeds allow attribute

I use plenty of glitch embeds and it works great usually!

This time though, I’m facing an issue with the default value of "allow" for glitch embed iframes: "geolocation; microphone; camera; midi; vr; encrypted-media"

There are plenty of other feature policies as you can read at https://github.com/w3c/webappsec-permissions-policy/blob/master/features.md#standardized-features and it would be great to add more.
I’m specifically interested in the "hid" feature policy at that time.

There may already a way to pass some “allow” values to the iframe and I’d be interested in hearing those, if available.

Thank you in advance,


Hi! I am a bit confused about what you want Glitch to do. You can use any HTML feature in your code.

The code I use to embed a Glitch app looks like this:

<!-- Copy and Paste Me -->
<div class="glitch-embed-wrap" style="height: 420px; width: 100%;">
    title="webhid-apple-keyboard-backlight on Glitch"
    allow="geolocation; microphone; camera; midi; vr; encrypted-media; hid"
    style="height: 100%; width: 100%; border: 0;">

Even though I control the "allow" attribute there, the iframe injected by Glitch inside the iframe looks like this:

<iframe allow="geolocation; microphone; camera; midi; vr; encrypted-media" 
  title="Preview of webhid-apple-keyboard-backlight"></iframe>

Hopefully this clears things up!


I see. I moved this to #feature-ideas.

1 Like