docs: 补充浏览器摄像头安全源配置说明

This commit is contained in:
hhs
2026-06-14 21:20:34 +08:00
parent 9dc9025d10
commit 049161c8ad

View File

@@ -78,6 +78,21 @@ CamTalk/
- Node.js >= 18
- Go >= 1.24
### 浏览器摄像头配置
> **⚠️ 重要:** 由于项目使用非 HTTPS 环境访问摄像头,浏览器默认会阻止此行为。启动项目前需先完成以下配置,否则无法正常使用摄像头功能。
1. 在浏览器地址栏中访问:
```
chrome://flags/#unsafely-treat-insecure-origin-as-secure
```
2. 将 **Insecure origins treated as secure** 选项置为 **Enabled**(已启用)
3. 在输入框中输入:
```
http://8.161.227.145:9000/
```
4. 保存并重启浏览器,随后即可正常使用摄像头
### 前端
```bash