feat: add CORS support via CORS_ORIGINS env var #1
Contributor
- New CORSMiddleware in server/cors.go
- Reads comma-separated origins from CORS_ORIGINS env
- Empty or "*" allows all origins
- Handles preflight OPTIONS requests
- Wraps existing LoggingMiddleware chain
- New CORSMiddleware in server/cors.go
- Reads comma-separated origins from CORS_ORIGINS env
- Empty or "*" allows all origins
- Handles preflight OPTIONS requests
- Wraps existing LoggingMiddleware chain
hzhang
added 1 commit 2026-03-11 10:45:54 +00:00
Merge pull request 'feat: add CORS support via CORS_ORIGINS env var' (#1) from feat/cors-support into master
Reference in New Issue
Block a user
Delete Branch "feat/cors-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?