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

Mozilla サポートの検索

サポート詐欺に注意してください。 私たちはあなたに通話やショートメッセージの送信、個人情報の共有を求めることはありません。疑わしい行為を見つけたら「迷惑行為を報告」からご報告ください。

詳しく学ぶ
Open

Microphone usage on private page in local network

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.

すべての返信 (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.

質問する

投稿に返信するには あなたのアカウントにログイン する必要があります。まだアカウントをお持ちでなければ、新しい質問を開始 してください。