2 Messages
•
90 Points
Access Error
I continue to get the same access denied error on my ElevenLabs AI Agent. The error seems to be the browser is blocking acceess. The code is not loading to give permissions policy and microphone access. The code for the AI Widget doesn't seem to be loading correctly. These are instructions to add code manually in Headers. I have not been able to add it in the right place. I do not know the version of homestead I am working with so instructions are not excact.
Permissions can only be granted in two places:
Inside the
<head>→ using a<meta http-equiv="Permissions-Policy">tagInside an
<iframe>→ using anallow="microphone"attribute
Your current code is not inside an iframe, so adding allow= to the script does nothing.
But… the ElevenLabs Convai widget runs in an iframe internally even if you don’t explicitly add one.
So we still need to allow microphone permission, but we do it a different way:
✔ Add the meta permissions tag in the HEAD
✔ Use the correct script tag for the widget
✔ DO NOT add allow to the script tag
✔ DO NOT wrap it in your own iframe unless ElevenLabs instructs it
So I’ll give you:
✅ The correct embed code you should use inside the page body
This is the official correct format:
<elevenlabs-convai agent-id="agent_5201kbtms96ne9sbsjskk1jbyfjr"></elevenlabs-convai><scriptasynctype="text/javascript"></script>
That’s it — clean and exactly how ElevenLabs expects it.
No allow= inside the script tag.
✅ PLUS — You MUST add this to the HEAD (not the body)
This is the permissions part Chrome is complaining about:
<meta http-equiv="Permissions-Policy" content="microphone=*, screen-wake-lock=*">
In Homestead:
Page Settings → Advanced / Header HTML / Edit Head
Paste the
<meta>tagSave
Publish
This is the part that grants the microphone permission that the internal iframe needs.
⚠️ IMPORTANT
If Homestead puts the <meta> tag in the body instead of the head, Chrome will still block the mic.
So after publishing:
Check if it’s actually in the HEAD
Right-click → Inspect
Click Elements
Press Ctrl+F
Search:
Permissions-Policy
It should appear under the <head> tag like this:
<head><meta http-equiv="Permissions-Policy" content="microphone=*, screen-wake-lock=*">...</head>
If it appears under <body>, Homestead placed it in the wrong location and we need to adjust how you inserted it.




No Responses!