-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AUT-1706: Remove form-action header from /enter-code page
- Loading branch information
1 parent
e10c31c
commit 426acc7
Showing
3 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { NextFunction, Request, Response } from "express"; | ||
import helmet from "helmet"; | ||
import { helmetConfiguration } from "../config/helmet"; | ||
|
||
export function setCspHeaders( | ||
req: Request, | ||
res: Response, | ||
next: NextFunction | ||
): void { | ||
helmet(helmetConfiguration(req))(req, res, next); | ||
} |