Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unrecognized origin" warnings? #63

Open
johndevor opened this issue Jan 28, 2020 · 1 comment
Open

"Unrecognized origin" warnings? #63

johndevor opened this issue Jan 28, 2020 · 1 comment

Comments

@johndevor
Copy link

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
Copy link

allow takes different format:
feature_name origin;

So in your case it should be

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants