# Webcam/Video access permission denied

**URL:** <https://talk.observablehq.com/t/webcam-video-access-permission-denied/532>\
**Category:** Help\
**Created:** [March 21, 2018, 2:32pm UTC](https://talk.observablehq.com/t/webcam-video-access-permission-denied/532 "2018-03-21T14:32:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miccferr](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@miccferr](https://talk.observablehq.com/u/miccferr)\
**Post date:** [March 21, 2018, 2:32pm UTC](https://talk.observablehq.com/t/webcam-video-access-permission-denied/532/1 "2018-03-21T14:32:41Z")

</div>

Hello!

I’m trying to use the `<video>` element to access my webcam video stream, but I’m having troubles with the permissions.

Here’s the error message:

```auto
VideoCapture permission has been blocked because of a Feature Policy applied to the current document. See [https://goo.gl/EuHzyv](https://goo.gl/EuHzyv) for more details.

```

From my (limited) understanding of the [provided link](https://goo.gl/EuHzyv) this is due to some CORS-related restrictions.

A suggested workaround is the use of `allow="camera"` attribute in an `iframe` tag, but I can’t make it work regardless.

I’ve searched around the forum and the public notebooks but haven’t come across any example for accessing the webcam. This is issue might be the closest I’ve found: [https://talk.observablehq.com/t/iframe-sandbox-attribute/193/7](https://talk.observablehq.com/t/iframe-sandbox-attribute/193/7)

Any ideas?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![jashkenas](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jashkenas/32/1778_2.png) [@jashkenas](https://talk.observablehq.com/u/jashkenas)\
**Post date:** [March 22, 2018, 12:26am UTC](https://talk.observablehq.com/t/webcam-video-access-permission-denied/532/2 "2018-03-22T00:26:36Z")

</div>

Thanks for the bug report!

Per your link to the Chromium change, we’ve added:

`allow="geolocation; microphone; camera; midi; encrypted-media"`

to our notebook `<iframe>` tags.

Webcam video permissions should now work properly. Here’s quick example: [https://beta.observablehq.com/@jashkenas/webcam-demo-for-the-forums](https://beta.observablehq.com/@jashkenas/webcam-demo-for-the-forums)

Let me know if it’s giving you any trouble.

Cheers,  
Jeremy

---

<div class="post-metadata">

**Author:** ![miccferr](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@miccferr](https://talk.observablehq.com/u/miccferr)\
**Post date:** [March 22, 2018, 12:40pm UTC](https://talk.observablehq.com/t/webcam-video-access-permission-denied/532/3 "2018-03-22T12:40:10Z")

</div>

Whoohoo! Works like a charm now.

Thank you for the quick response as well.

Cheers!
