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

mozilla / blurts-server / #11973

pending completion
#11973

push

circleci

web-flow
Merge pull request #2775 from mozilla/MNTOR-1014/breach-resolution

Mntor 1014/breach resolution

282 of 1207 branches covered (23.36%)

Branch coverage included in aggregate %.

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

959 of 3217 relevant lines covered (29.81%)

2.42 hits per line

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

0.0
/src/utils/csrf.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
import { doubleCsrf } from 'csrf-csrf'
6
import * as AppConstants from '../app-constants.js'
7

8
// defaults to ignore GET, HEAD, OPTIONS
9
const { doubleCsrfProtection, generateToken } = doubleCsrf({
×
10
  getSecret: () => AppConstants.CSRF_SECRET,
×
11
  cookieName: 'monitor.x-csrf-token'
12
})
13

14
export {
15
  doubleCsrfProtection,
16
  generateToken
17
}
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