Skip to content

Commit

Permalink
docs: fix code sample for validating sessions in express. (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
nollidnosnhoj authored Aug 18, 2024
1 parent 3036a2e commit cfe8251
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/pages/guides/validate-session-cookies/express.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ app.use((req, res, next) => {
if (!originHeader || !hostHeader || !verifyRequestOrigin(originHeader, [hostHeader])) {
return res.status(403).end();
}
return next();
});

app.use((req, res, next) => {
Expand Down

0 comments on commit cfe8251

Please sign in to comment.