본문 바로가기
개발 부산물/React & Javascript

Chrome Javascript MediaDevices.getUserMedia() http Permission error

by 개탱 2023. 9. 22.
728x90

보안문제로 인하여 MDN에서 MediaDevices Function은 https 에서만 접근을 허용해줌.

이에 개발환경 등에서 작업시 http접근 허용이 가능하도록 세팅이 필요함.

 

1. chrome://flags/ 

2. Search unsafely-treat-insecure-origin-as-secure 

3. Enter the domain you want to allow access to in the input field and select "Enabled".

 - 하단 사진의 Input 영역에 도메인주소를 입력 후 Enabled 선택

4. Reboot the web after clicking "relaunch"

- relaunch 클릭 후 웹 재부팅

 

 

 

댓글