Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving away from csurf and to csrf-sync
Fixes a security vulnerability GHSA-pxg6-pf52-xh8x and brings our UI more inline with HMPPS Typescript template ``` csurf has been deprecated for some time and this removes that dependency and implements the synchronizer token pattern using csrf-sync. Note: Previously csurf used to generate new tokens on every request. The new library generates tokens once per session which is preferrable due to the extra calls to redis that per-request would generate. It is possible to force a refresh/revocation of a token by explicitly calling: req.csrfToken(true) See PR #481 ``` Quote from https://github.com/ministryofjustice/hmpps-template-typescript/blob/2e139f5e9e3a6dbfaa0c6bbbc240513556102a8f/CHANGELOG.md PR: https://github.com/ministryofjustice/hmpps-template-typescript/pull/481/files
- Loading branch information