Skip to content

fix: harden local API binding and update webui dependencies - #948

Open
sitong721 wants to merge 1 commit into
NanmiCoder:mainfrom
sitong721:main
Open

fix: harden local API binding and update webui dependencies#948
sitong721 wants to merge 1 commit into
NanmiCoder:mainfrom
sitong721:main

Conversation

@sitong721

Copy link
Copy Markdown

变更内容

  • python -m api.main 启动方式下的 API 默认监听地址从 0.0.0.0 改为 127.0.0.1
  • 更新 WebUI 的 package-lock.json,修复 npm audit 报告的依赖安全问题
  • 升级相关前端依赖锁定版本,包括 axiosform-datafollow-redirects 以及部分构建链路依赖

变更原因

WebUI API 包含启动/停止爬虫、查看日志、读取本地爬取数据等接口。默认监听 0.0.0.0 时,使用 python -m api.main 启动服务可能会把这些接口暴露给局域网内其他设备。

同时,前端依赖锁文件中存在 npm audit 报告的安全告警,因此同步更新锁文件以消除已知漏洞。

验证方式

  • python -m py_compile api/main.py
  • npm audit --omit=dev
  • npm audit
  • npm run build

@sitong721
sitong721 requested a review from NanmiCoder as a code owner July 28, 2026 07:44
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant