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

umputun / secrets / 24543050828
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: feat/csrf-protection
DEFAULT BRANCH: master
Ran 17 Apr 2026 01:32AM UTC
Jobs 1
Files 15
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

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

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

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

1705 of 2036 relevant lines covered (83.74%)

76.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24543050828.1 17 Apr 2026 01:32AM UTC 15
83.74
GitHub Action Run
Source Files on build 24543050828
  • Tree
  • List 15
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #119
  • PR Base - master (#23939947649)
  • 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