# Iframe with access to camera

**URL:** <https://community.weweb.io/t/iframe-with-access-to-camera/19185>\
**Category:** How do I?\
**Created:** [July 12, 2025, 1:22pm UTC](https://community.weweb.io/t/iframe-with-access-to-camera/19185 "2025-07-12T13:22:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedemurrone](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@fedemurrone](https://community.weweb.io/u/fedemurrone)\
**Post date:** [July 12, 2025, 1:22pm UTC](https://community.weweb.io/t/iframe-with-access-to-camera/19185/1 "2025-07-12T13:22:08Z")

</div>

I have a weweb app that at some point embeds another website that requires access to the camera. I tried to edit the HTML attributes of my iframe component and add an “allow” attribute with “camera” as value, but when I inspect the resulting DOM, the iframe doesnt include those attributes. When I manually change the DOM from Chrome directly, the iframe works perfect, so its just weweb not adding the “allow” attribute to it.

Is there anything that I should be doing differently here?

thanks!

---

<div class="post-metadata">

**Author:** ![Batik\_Okazov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/batik_okazov/32/12688_2.png) [@Batik\_Okazov](https://community.weweb.io/u/Batik_Okazov)\
**Post date:** [July 12, 2025, 2:22pm UTC](https://community.weweb.io/t/iframe-with-access-to-camera/19185/2 "2025-07-12T14:22:37Z")

</div>

Hi,

I think the reason may be in the Weweb object reference approach, which is described here.: [Record video using webcam stream in weWeb](https://community.weweb.io/t/record-video-using-webcam-stream-in-weweb/7835)
