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

go-pkgz / rest / 32197356726
97%

Build:
DEFAULT BRANCH: master
Ran 18 Aug 2026 11:29PM UTC
Jobs 1
Files 25
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

18 Aug 2026 11:28PM UTC coverage: 97.451% (+0.01%) from 97.439%
32197356726

push

github

web-flow
Reject wildcard CORS origin when credentials are enabled (#52)

* fix!: reject wildcard CORS origin when credentials are enabled

Previously, CORS(CorsAllowCredentials(true)) kept the default "*" origin list
and reflected any request Origin back together with
Access-Control-Allow-Credentials: true, which lets any site read
cookie-authenticated responses. The config doc already claimed the combination
was not allowed.

CORS now panics at construction when "*" is among the allowed origins and
credentials are on. This is a breaking change for callers relying on the old
behaviour, who have to enumerate their origins instead.

* docs: document the CORS credentials restriction

* feat: add CorsUnsafeAnyOriginWithCredentials opt-in

Rejecting "*" with credentials stays the default, but it no longer removes the
capability. A service that has to accept credentialed requests from arbitrary
third-party origins, an embeddable widget being the obvious case, can ask for
origin reflection by name, and the name and doc comment say what it costs.

7 of 7 new or added lines in 1 file covered. (100.0%)

1529 of 1569 relevant lines covered (97.45%)

48.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32197356726.1 18 Aug 2026 11:29PM UTC 25
97.45
GitHub Action Run
Source Files on build 32197356726
  • Tree
  • List 25
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 896d9aaa on github
  • Prev Build on master (#32197043514)
  • Next Build on master (#32197883937)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc