robbestad / react-iframe

Simple solution for using iframes in React
ISC License
436 stars 79 forks source link

"Unrecognized origin" warnings? #63

Open johndevor opened 4 years ago

johndevor commented 4 years ago

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"
/>
CezaryDanielNowak commented 1 year ago

allow takes different format: feature_name origin;

So in your case it should be

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