Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More
Open

Microphone usage on private page in local network

boski_cinek replied
boski_cinek

I have webpage (Home Assistant instance) on my local network on which I would like to use microphone (for Assistant functionality). Page is completely local, i.e. not visible from Internet. My issue is I can't force Firefox to allow microphone access on this page. I've tried messing with media.devices.insecure.enabled config, but it didn't help. Is there any way to add such page to some whitelist to allow microphone access? From what I gathered Chromium-based browser provides "--unsafely-treat-insecure-origin-as-secure=..." option but I didn't find anything similar for Firefox. I know I could expose my server to outside network and get SSL certificate (from Lets Encrypt) to make it work, but exposing server to Internet just to get local microphone access somehow doesn't feel like a more secure solution. I could probably also issue self-singed certificate but dealing with that also seems at least annoying.

I have webpage (Home Assistant instance) on my local network on which I would like to use microphone (for Assistant functionality). Page is completely local, i.e. not visible from Internet. My issue is I can't force Firefox to allow microphone access on this page. I've tried messing with media.devices.insecure.enabled config, but it didn't help. Is there any way to add such page to some whitelist to allow microphone access? From what I gathered Chromium-based browser provides "--unsafely-treat-insecure-origin-as-secure=..." option but I didn't find anything similar for Firefox. I know I could expose my server to outside network and get SSL certificate (from Lets Encrypt) to make it work, but exposing server to Internet just to get local microphone access somehow doesn't feel like a more secure solution. I could probably also issue self-singed certificate but dealing with that also seems at least annoying.

All Replies (2)

You might need both media.getusermedia.insecure.enabled and media.devices.insecure.enabled first, however this won't be around too much longer apparently: bugzilla.mozilla.org/1842329

I've tried both, together with dom.security.https_only_mode set to false, but still without success.

Béèrè ìbéèrè

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.