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

m-lab / locate / 21485597235
82%
main: 82%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/gomod-minor-patch-df618289f0
DEFAULT BRANCH: main
Ran 29 Jan 2026 04:12PM UTC
Jobs 1
Files 40
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

29 Jan 2026 04:08PM UTC coverage: 82.191% (+0.04%) from 82.148%
21485597235

Pull #248

github

bassosimone
fix(handler): handle preflight CORS request

When we make a request with `Authorization` for m-lab/locate from
https://github.com/m-lab/mlab-speedtest/pull/81, the request itself stops
being a [simple request](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS#simple_requests)
and becomes a [preflighted request](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS#preflighted_requests).

This happens because the `Authorization` header is not in the set
of headers allowed for simple requests. As such, a browser will issue
a `OPTIONS *` request first to check whether the server would accept
such a request or not.

In turn, this causes a `403` when trying to invoke m-lab/locate in
https://github.com/m-lab/mlab-speedtest/pull/81.

To address this issue, we extend the set of allowed methods to also
include `OPTIONS` and we handle `OPTIONS *` by returning `204`.
Pull Request #248: fix(handler): handle preflight CORS request

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

13 existing lines in 1 file now uncovered.

2386 of 2903 relevant lines covered (82.19%)

6.05 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
88.42
0.22% handler/handler.go

Uncovered Existing Lines

Lines Coverage ∆ File
13
88.42
0.22% handler/handler.go
Jobs
ID Job ID Ran Files Coverage
1 21485597235.1 29 Jan 2026 04:12PM UTC 40
82.19
GitHub Action Run
Source Files on build 21485597235
  • Tree
  • List 40
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #248
  • PR Base - main (#21364996974)
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