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

mozilla / blurts-server / 27a81217-0378-461a-88be-09e264a54938

pending completion
27a81217-0378-461a-88be-09e264a54938

push

circleci

GitHub
Merge pull request #2739 from mozilla/MNTOR-1026

278 of 1120 branches covered (24.82%)

Branch coverage included in aggregate %.

11 of 11 new or added lines in 3 files covered. (100.0%)

948 of 3010 relevant lines covered (31.5%)

5.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/middleware/csrf.js
1
import { doubleCsrf } from 'csrf-csrf'
2
import * as AppConstants from '../app-constants.js'
3

4
// defaults to ignore GET, HEAD, OPTIONS
5
const { doubleCsrfProtection, generateToken } = doubleCsrf({
×
6
  getSecret: (req) => req.secret || AppConstants.CSRF_SECRET,
×
7
  cookieName: 'monitor.x-csrf-token'
8
})
9

10
export {
11
  doubleCsrfProtection,
12
  generateToken
13
}
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

© 2025 Coveralls, Inc