From 1da7e966800e620656f7fe4bfd94f327774f6e85 Mon Sep 17 00:00:00 2001 From: Abdul Ghani Date: Tue, 24 Sep 2024 17:32:26 +0500 Subject: [PATCH] CSRF ERROR is done. is to be configured --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 8ba06c1..11766d4 100644 --- a/app.js +++ b/app.js @@ -19,13 +19,13 @@ app.use(express.static("public")); app.use(express.static("pictures")); app.use(express.urlencoded({ extended: true })); app.use(cookieParser()); -app.use(csrf()); app.get("*",checkUser); app.use(baseRoutes); app.use(authRoutes); app.use(accountRoutes); app.use(errorHandlerMiddleware); +app.use(csrf()); db.connectToDatabase() .then(() => {