# CRM Cards iframe: Allow display-capture

**URL:** <https://community.hubspot.com/t/crm-cards-iframe-allow-display-capture/83678>\
**Category:** APIs & Integrations\
**Tags:** free, starter\
**Created:** [June 19, 2023, 2:22pm UTC](https://community.hubspot.com/t/crm-cards-iframe-allow-display-capture/83678 "2023-06-19T14:22:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snorreks](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/snorreks/32/198792_2.png) [@snorreks](https://community.hubspot.com/u/snorreks)\
**Post date:** [June 19, 2023, 2:22pm UTC](https://community.hubspot.com/t/crm-cards-iframe-allow-display-capture/83678/1 "2023-06-19T14:22:39Z")

</div>

We are using the CRM Cards through CRM Extensions API. So HubSpot sends a request to our webhook, where we have an primaryAction to open a iframe in hubspot.  
Our response:  
**{**  
**“primaryAction”: {**  
**“height”: 800,**  
**“label”: “New Video”,**  
**“type”: “IFRAME”,**  
**“uri”: “[https://app.mailvideo.com/new](https://app.mailvideo.com/new)”,**  
**“width”: 800**  
**},**  
**…**  
**}**  
I believe that HubSpot’s predefined iframe is not allowing display-capture [Permissions-Policy: display-capture directive - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy/display-capture)

 ![snorreks_0-1687184284266.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/4/45a3641568dc222cb871f99fffc033edc70f7607.png)

 ![snorreks_1-1687184284246.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/2296caafa33d6fd2612bf0da9cd8c04ba7b19453.png)

The second pictures throws the following error:  
_DOMException: Failed to execute ‘getDisplayMedia’ on ‘MediaDevices’: Access to the feature “display-capture” is disallowed by permission policy._

Soulution:  
Add display-capture in your iframe allow attribute:

\<iframe allow=“camera; microphone; display-capture” …\>
