• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / remark42 / 28480359092
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: deps/rest-v1.22.0
DEFAULT BRANCH: master
Ran 30 Jun 2026 10:39PM UTC
Jobs 1
Files 53
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jun 2026 10:36PM UTC coverage: 84.37% (+0.03%) from 84.345%
28480359092

Pull #2102

github

paskal
Replace go-chi/cors with go-pkgz/rest CORS

Swap the go-chi/cors middleware for rest.CORS (already a dependency),
removing the go-chi/cors module entirely. Behaviour-preserving:
- with AllowedOrigins "*" and credentials enabled, both reflect the request
  Origin into Access-Control-Allow-Origin (a literal "*" is invalid with
  credentials)
- preflight responses also vary on Access-Control-Request-Method/-Headers, not
  just Origin, matching go-chi/cors so caches don't reuse a preflight response
  across different requests

Extract the config into corsMiddleware() in middleware.go and add
TestCorsMiddleware covering origin reflection, credentials, preflight
methods/headers/max-age/Vary, and the no-Origin case. go-chi/cors dropped
from go.mod; the chi router stays until the router migration. go test -race,
vet, golangci-lint, govulncheck clean.
Pull Request #2102: Replace go-chi/cors with go-pkgz/rest CORS

21 of 21 new or added lines in 2 files covered. (100.0%)

6402 of 7588 relevant lines covered (84.37%)

36.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28480359092.1 30 Jun 2026 10:39PM UTC 53
84.37
GitHub Action Run
Source Files on build 28480359092
  • Tree
  • List 53
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2102
  • PR Base - master (#28479387746)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc