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,
Francois!

3 Likes

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%;">
  <iframe
    src="https://glitch.com/embed/#!/embed/webhid-apple-keyboard-backlight?path=README.md&previewSize=0"
    title="webhid-apple-keyboard-backlight on Glitch"
    allow="geolocation; microphone; camera; midi; vr; encrypted-media; hid"
    style="height: 100%; width: 100%; border: 0;">
  </iframe>
</div>

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" 
  src="https://webhid-apple-keyboard-backlight.glitch.me/"
  data-testid="app-preview-iframe"
  title="Preview of webhid-apple-keyboard-backlight"></iframe>

Hopefully this clears things up!

2 Likes

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

1 Like

(gentle bump)

1 Like

Hey, I would recommend you share this with support@glitch.com.

@beaufortfrancois thank you for not hugely bumping this lol

and I’m pretty sure you can use the addAttribute JS API to add the allow attribute

*`*{(]-,✧:º HUGE BUMP º:✧,-])} *`*

(tenchars)

1 Like

Lol

but @beaufortfrancois should’ve done like this:

(gentle bump)

This feature will be great :wink:

I can then add fullscreen support for once

edit: to have a big bump you have to bump a topic that’s been inactive for months
med bump = weeks
huge bump = years
mega bump = beginning of glitch forum :wink:

1 Like

You might want to email support@glitch.com since this more of an issue with the embeds, than a feature request. That way you can get it addressed much more faster

Come to think of it, what was the first thread on this forum?
Edit: Can’t find exact dates, but check out this search query: https://support.glitch.com/search?q=before%3A2016-04-01

1 Like

I’ve contacted support@glitch.com. Thanks for all the bumps in my heart :wink:

3 Likes