yohei0125 3 лет назад
Родитель
Сommit
6537d23851
1 измененных файлов с 0 добавлено и 5 удалено
  1. 0 5
      packages/app/src/server/crowi/express-init.js

+ 0 - 5
packages/app/src/server/crowi/express-init.js

@@ -1,7 +1,5 @@
 import mongoose from 'mongoose';
 import mongoose from 'mongoose';
 
 
-import csrf from 'csurf';
-
 // import { i18n, localePath } from '~/next-i18next.config';
 // import { i18n, localePath } from '~/next-i18next.config';
 
 
 module.exports = function(crowi, app) {
 module.exports = function(crowi, app) {
@@ -121,9 +119,6 @@ module.exports = function(crowi, app) {
     sessionMiddleware(req, res, next);
     sessionMiddleware(req, res, next);
   });
   });
 
 
-  // csurf should be initialized after express-session
-  app.use(csrf({ cookie: false }));
-
   // passport
   // passport
   debug('initialize Passport');
   debug('initialize Passport');
   app.use(passport.initialize());
   app.use(passport.initialize());