Your Name
|
e5da23cea2
|
test: add CORS middleware tests
Add tests for CORS functionality:
- validateCORSConfig (valid and invalid configs)
- SetCORSConfig (update and validation)
- resolveAllowedOrigin (exact match, wildcard, case insensitive)
- CORS middleware (allow/forbid origins, OPTIONS handling)
Coverage: middleware 36.4% → 37.4%
|
2026-05-29 21:06:43 +08:00 |
|