accessing camera and mic in sandboxed iframe from different subdomain accessing camera and mic in sandboxed iframe from different subdomain node.js node.js

accessing camera and mic in sandboxed iframe from different subdomain


Just read https://groups.google.com/forum/#!topic/bigbluebutton-dev/jauJm_sBbU8

This worked before:

<iframe src="example.com" allow="camera; microphone"/>

In my case , the webpage has a HTTP response header: "Content-Security-Policy: child-src 'self' *;"And the URL's origin in Iframe is not the same as its parent's URL origin.

But now we should do like this:(tested in Chrome Version 83.0.4103.61 )

<iframe src="example.com" allow="camera https://example.com; microphone https://example.com"/>


Piece of cake:

<iframe       title="Open identification process"       src="xxx.com"       frameBorder="0"       width="600"       height="800"       allow="camera; microphone"     />