Skip to content

Commit

Permalink
remove nonce middleware and related test
Browse files Browse the repository at this point in the history
  • Loading branch information
harley-harris committed Jul 25, 2024
1 parent 1d825ed commit d89d294
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
2 changes: 0 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { configureCors } from './config/cors';

import { errorHandler, errorNotFound } from './controller/error.controller';

import { setNonce } from './middleware/nonce.middleware';
import { configureRateLimit } from './config/rate-limit';

const app = express();
Expand All @@ -31,7 +30,6 @@ app.use(express.urlencoded({ extended: false }));
app.use(cookieParser(COOKIE_PARSER_SECRET));
app.use(cookieSession({ secret: COOKIE_SESSION_SECRET }));

app.use(setNonce);
configureHelmet(app);
configureCors(app);
configureRateLimit(app);
Expand Down
8 changes: 0 additions & 8 deletions src/middleware/nonce.middleware.ts

This file was deleted.

21 changes: 0 additions & 21 deletions test/unit/middleware/nonce.middleware.spec.ts

This file was deleted.

0 comments on commit d89d294

Please sign in to comment.