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

umputun / secrets / 24543050828 / 1
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/go-modules-updates-4c23bf149f
DEFAULT BRANCH: master
Ran 17 Apr 2026 01:32AM UTC
Files 15
Run time 0s
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

17 Apr 2026 01:30AM UTC coverage: 83.743% (+0.008%) from 83.735%
24543050828.1

Pull #119

github

paskal
Wrap router with http.CrossOriginProtection for CSRF defence

Add Go 1.25's http.NewCrossOriginProtection().Handler to the global
middleware chain. Previously the only CSRF defence was SameSite=Strict
on the session cookie, which Firefox does not enforce by default and
which subdomain attacks can bypass.

The middleware checks Sec-Fetch-Site (forbidden header, set by all
major browsers since 2023) with an Origin/Host fallback. Safe methods
and non-browser POSTs (no Sec-Fetch-Site header, e.g. curl/scripts
hitting /api/v1/) pass through unchanged.
Pull Request #119: Wrap router with http.CrossOriginProtection for CSRF defence

1705 of 2036 relevant lines covered (83.74%)

76.23 hits per line

Source Files on job 24543050828.1
  • Tree
  • List 15
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24543050828
  • 7750b8fb on github
  • Prev Job for on feat/csrf-protection (#23939947649.1)
  • 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