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

codebar / planner / 27333770495
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: feature/skip-csrf-for-feedback-form
DEFAULT BRANCH: master
Ran 11 Jun 2026 08:25AM UTC
Jobs 1
Files 188
Run time 2min
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

11 Jun 2026 08:21AM UTC coverage: 95.33% (+0.001%) from 95.329%
27333770495

Pull #2641

github

mroderick
fix: skip CSRF protection for feedback form submission

The feedback form uses a unique secret token in the URL to authenticate
the request. This is sufficient protection against CSRF — an attacker
would need to know the token to submit the form.

However, protect_from_forgery requires a session cookie, which browsers
like Safari withhold when they classify the request as cross-site (e.g.
when a user navigates from a third-party app or Intelligent Tracking
Prevention is active). This causes the form submission to fail with
ActionController::InvalidAuthenticityToken even for legitimate users.

This has caused 82 occurrences in production (Rollbar #535).

Changes:
- Skip CSRF protection on FeedbackController#submit
- Add controller specs covering show, submit, and the CSRF-exempt path

Fixes: https://app.rollbar.com/a/codebar-production/fix/item/codebar-production/535#detail
Pull Request #2641: fix: skip CSRF protection for feedback form submission

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

3552 of 3726 relevant lines covered (95.33%)

42.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27333770495.1 11 Jun 2026 08:25AM UTC 1128
70.25
GitHub Action Run
Source Files on build 27333770495
  • Tree
  • List 188
  • Changed 121
  • Source Changed 1
  • Coverage Changed 121
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27333770495
  • Pull Request #2641
  • PR Base - master (#27259381057)
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