fix: harden local API binding and update webui dependencies - #948
Open
sitong721 wants to merge 1 commit into
Open
fix: harden local API binding and update webui dependencies#948sitong721 wants to merge 1 commit into
sitong721 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
python -m api.main启动方式下的 API 默认监听地址从0.0.0.0改为127.0.0.1package-lock.json,修复npm audit报告的依赖安全问题axios、form-data、follow-redirects以及部分构建链路依赖变更原因
WebUI API 包含启动/停止爬虫、查看日志、读取本地爬取数据等接口。默认监听
0.0.0.0时,使用python -m api.main启动服务可能会把这些接口暴露给局域网内其他设备。同时,前端依赖锁文件中存在
npm audit报告的安全告警,因此同步更新锁文件以消除已知漏洞。验证方式
python -m py_compile api/main.pynpm audit --omit=devnpm auditnpm run build