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”,
“width”: 800
},
…
}
I believe that HubSpot’s predefined iframe is not allowing display-capture Permissions-Policy: display-capture directive - HTTP | MDN
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” …>

