[中] API层将服务端错误详情泄漏到浏览器console.log #96
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述
frontend/src/api/index.ts 第144行,错误响应体直接 console.log 输出到浏览器控制台。服务端返回的错误可能包含堆栈跟踪、数据库查询等敏感信息。
涉及文件
修复建议
生产环境禁用详细错误日志,或仅在开发模式下输出。
严重程度
中 - 信息泄漏