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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/gomod-minor-patch-df618289f0
DEFAULT BRANCH: main
Ran 29 Jan 2026 04:48PM 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:44PM UTC coverage: 82.209% (+0.06%) from 82.148%
21486791881

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 `200`. We
return `200` because of https://stackoverflow.com/a/46028619.
Pull Request #248: fix(handler): handle preflight CORS request

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

2389 of 2906 relevant lines covered (82.21%)

6.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21486791881.1 29 Jan 2026 04:48PM UTC 40
82.21
GitHub Action Run
Source Files on build 21486791881
  • 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