mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
跨域以前固定回 *,同时又允许带凭证,浏览器会直接拦下。改成回显具体 来源,默认还是放开所有来源,运维想收紧就填具体地址。config.yaml 里 顺手清了示例白名单地址 —— 那是公开可知的,用户只开认证开关就会白白 继承一条谁都能冒充的白名单;顺便补上新配置项的说明。 |
||
|---|---|---|
| .. | ||
| api | ||
| handle | ||
| providers | ||
| utils | ||
| auth.py | ||
| connection.py | ||
| http_server.py | ||
| websocket_server.py | ||