How to allow Chrome to access my camera on localhost?

前端 未结 9 2174
庸人自扰
庸人自扰 2020-11-29 03:10

I cloned a project about real-time image processing on a web browser from this link: Then I could not allow my browser to access my camera. I got this javascript alert:

9条回答
  •  我在风中等你
    2020-11-29 03:33

    To ignore Chrome’s secure origin policy, follow these steps.

    Navigate to chrome://flags/#unsafely-treat-insecure-origin-as-secure in Chrome.

    Find and enable the Insecure origins treated as secure section (see below).

    Add any addresses you want to ignore the secure origin policy for. Remember to include the port number too (if required).

    Save and restart Chrome.

    I found solution from below link.Hope it will help to someone

    https://medium.com/@Carmichaelize/enabling-the-microphone-camera-in-chrome-for-local-unsecure-origins-9c90c3149339

提交回复
热议问题