Skip to content

拒绝原型属性命中的代理路径 - #44

Merged
jhl-hk merged 3 commits into
mainfrom
fix/32-own-route-keys
Nov 12, 2026
Merged

jhl-hk merged 3 commits into
mainfrom
fix/32-own-route-keys

Conversation

@jhl-hk

@jhl-hk jhl-hk commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

变更

  • 代理路由匹配仅接受自有属性,拒绝原型属性命中的路径。
  • 补充代理允许列表回归测试及维护说明。

已观察验证

  • 43 项定向 Bun 测试通过,195 次断言。
  • Astro 检查 75 个文件,0 个错误。
  • 继承的原型键返回 404,未请求上游;有效路由、鉴权、方法和 Origin 行为保留。

Closes #32

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

🤖 AI Code Review

Incremental review of 03e5961..2869a74. Earlier findings stay as inline comments.

🔴 0 critical · 🟠 0 warning · 🔵 0 suggestion

The change correctly prevents inherited prototype properties from being treated as allow-list entries and preserves multiple Set-Cookie headers without splitting Expires values. I found no concrete bugs or regressions in the reviewed diff.

No issues found.

Model: expen · generated automatically. Use judgment — it can be wrong.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI review: 1 inline finding(s) on 03e5961. Summary in the AI Code Review comment.

Comment thread src/server/proxyAllowList.test.ts Resolved
@jhl-hk
jhl-hk merged commit 3f66231 into main Nov 12, 2026
2 checks passed
@jhl-hk
jhl-hk deleted the fix/32-own-route-keys branch November 18, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GET /api/v1/toString 返回 500

1 participant