robbestad/react-iframe

"Unrecognized origin" warnings?

johndevor opened this issue · 1 comments

I get these warnings when running my Iframe component with the corresponding 'allow' variables set.

Unrecognized origin: 'microphone'.
Unrecognized origin: 'camera'.
Unrecognized origin: 'midi'.

This is the iFrame generating the warnings:

<Iframe
  url={pageUrl}
  width="100%"
  height="100%"
  id={'iframe__' + props.id}
  display="absolute"
  position="relative"
  frameBorder="0"
  allow="microphone camera midi"
/>

allow takes different format:
feature_name origin;

So in your case it should be

  allow="microphone *; camera *; midi *;"