authgear / authgear/authgear-server
OPTIONS request should not redirect
Open
- Dominant language
- Go
- Stars
- 2k
- Forks
- 125
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 32
Description
Currently the Host checking middleware is mounted before the CORS middleware. If the incoming Host is valid but not the canonical one, OPTIONS request should still return 200 instead of 3xx.
Contributor guide
Research direction
Start by locating the Host checking middleware and the CORS middleware, then reproduce an OPTIONS request with a valid but non-canonical Host. Trace the middleware order and verify that the request returns 200 rather than a 3xx redirect while preserving the existing behavior for other requests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100