You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: harden CORS proxy with timeout, size limit, and encoded path check (#145)
* fix: harden CORS proxy with timeout, size limit, and encoded path check
- Decode path before traversal check to catch %2e%2e encoded variants
- Add AbortSignal.timeout(30s) to upstream fetch calls
- Reject request bodies larger than 1MB via Content-Length check
- Return 504 for upstream timeouts instead of generic 502
Closes#118
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: increase proxy body size limit to 10MB
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: increase proxy upstream timeout to 2 minutes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: use StatusCodes from http-status-codes package
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments