mirror of
https://github.com/Foltik/Shimapan
synced 2025-01-07 08:42:49 -05:00
Remove cookie-parser
This commit is contained in:
parent
dc470fd131
commit
aac5caf6a7
9
package-lock.json
generated
9
package-lock.json
generated
@ -942,15 +942,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
|
||||||
"integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s="
|
"integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s="
|
||||||
},
|
},
|
||||||
"cookie-parser": {
|
|
||||||
"version": "1.4.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.3.tgz",
|
|
||||||
"integrity": "sha1-D+MfoZ0AC5X0qt8fU/3CuKIDuqU=",
|
|
||||||
"requires": {
|
|
||||||
"cookie": "0.3.1",
|
|
||||||
"cookie-signature": "1.0.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"cookie-signature": {
|
"cookie-signature": {
|
||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
"body-parser": "^1.18.2",
|
"body-parser": "^1.18.2",
|
||||||
"config": "^1.26.2",
|
"config": "^1.26.2",
|
||||||
"connect-mongo": "^2.0.0",
|
"connect-mongo": "^2.0.0",
|
||||||
"cookie-parser": "^1.4.3",
|
|
||||||
"event-stream": "^3.3.4",
|
"event-stream": "^3.3.4",
|
||||||
"express": "^4.16.2",
|
"express": "^4.16.2",
|
||||||
"express-sanitizer": "^1.0.2",
|
"express-sanitizer": "^1.0.2",
|
||||||
|
@ -4,7 +4,6 @@ var methodOverride = require('method-override');
|
|||||||
var mongoose = require('mongoose');
|
var mongoose = require('mongoose');
|
||||||
var morgan = require('morgan');
|
var morgan = require('morgan');
|
||||||
var passport = require('passport');
|
var passport = require('passport');
|
||||||
var cookieParser = require('cookie-parser');
|
|
||||||
var session = require('express-session');
|
var session = require('express-session');
|
||||||
var sanitizer = require('express-sanitizer');
|
var sanitizer = require('express-sanitizer');
|
||||||
var helmet = require('helmet');
|
var helmet = require('helmet');
|
||||||
@ -45,7 +44,6 @@ app.use(session({
|
|||||||
}));
|
}));
|
||||||
app.use(passport.initialize());
|
app.use(passport.initialize());
|
||||||
app.use(passport.session());
|
app.use(passport.session());
|
||||||
app.use(cookieParser());
|
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
app.use(bodyParser.json({ type: 'application/*+json' }))
|
app.use(bodyParser.json({ type: 'application/*+json' }))
|
||||||
app.use(bodyParser.urlencoded({ extended: true }));
|
app.use(bodyParser.urlencoded({ extended: true }));
|
||||||
|
Loading…
Reference in New Issue
Block a user