简体   繁体   中英

How to allow Google Chrome to access your microphone forever on local server?

I've created my LocalHost using Node.js to test and debug my javascript project. I'm Using Chrome. On HTTPS server I need to click allow using mic just the first time, but in my localhost, I need to click on allow pup op each time my project calls microphone.

How do I allow access to my microphone on my localhost once?

If there is not a way to achieve that do you know any free https hosting fo testing purposes...

You need a secure connection in order for Chrome to remember your permission preference. You should be able to create a self-signed cert (the instructions differ based on the OS) so that you can actually visit localhost securely, once you've done that your microphone will be accessible between page loads.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM