代理post请求,返回405错误
Open
- Dominant language
- TypeScript
- Stars
- 3.2k
- Forks
- 274
- PR merge metrics
- No merged PRs in 30d
Description
## 背景
使用lightproxy代理的时候,get请求没问题,post请求会返回405 Method Not Allowed错误
## 问题排查
发现response header中返回了allow: GET
请问问题产生的原因以及解法。

Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the report in LightProxy using the described GET and POST requests, then inspect the response headers for the 405 status and Allow: GET value. Trace where proxy handling distinguishes the two methods; done means identifying the cause and documenting or correcting the POST behavior, with a reproducible verification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100