在启用身份验证时, CORS preflight OPTIONS 会出现 401 错误
作者: JeremyH76创建于 2026年4月17日更新于 2026年10月1日
标签bug
描述
当 api 部分同时配置了 origin: '*' 和 username/password 时,来自浏览器的所有跨域请求都会以 CORS 错误的形式失败。我无法成功连接到 WebRTC 中的流。
内容来源: AlexxIT/go2rtc
当 api 部分同时配置了 origin: '*' 和 username/password 时,来自浏览器的所有跨域请求都会以 CORS 错误的形式失败。我无法成功连接到 WebRTC 中的流。
内容来源: AlexxIT/go2rtc