Give iframe permission (allow)

I need to embed an iframe into Plasmic that allows permission for microphone, MIDI, etc. I have tried to embed the iframe as an HTML embed element but it didn’t work either. Why is not possible to embed the iframe directly as you can do, for example, in Webflow? It would be useful for example for giving it an ID.

Thanks,

Can you share the error you are running into?

Thanks for the quick response! This is what I see in de console. That iframe requires allow=microphone in the iframe declaration.

image

Is this on your published site or in Plasmic Studio? Are you using Plasmic hosting?

As long as your published site and the embedded iframe have the same origin domain, it should just work. Otherwise, the published site would need to allow the iframe origin.

It’s published in Plasmic hosting and the iframe has a different origin. How can I allow the iframe origin?
Thank you

Can you try adding the microphone permission to the iframe?

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

Unfortunately you can’t do this with the Plasmic iframe component, but you should be able to achieve this with the Embed HTML component instead.

Thank you @jason, it works Correctly. I had left a lazy loading tag that was interfering.
Cheers,