diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -12,6 +12,7 @@ import * as bodyParser from 'body-parser' | |||
12 | import * as express from 'express' | 12 | import * as express from 'express' |
13 | import * as morgan from 'morgan' | 13 | import * as morgan from 'morgan' |
14 | import * as cors from 'cors' | 14 | import * as cors from 'cors' |
15 | import * as cookieParser from 'cookie-parser' | ||
15 | 16 | ||
16 | process.title = 'peertube' | 17 | process.title = 'peertube' |
17 | 18 | ||
@@ -112,6 +113,8 @@ app.use(bodyParser.json({ | |||
112 | type: [ 'application/json', 'application/*+json' ], | 113 | type: [ 'application/json', 'application/*+json' ], |
113 | limit: '500kb' | 114 | limit: '500kb' |
114 | })) | 115 | })) |
116 | // Cookies | ||
117 | app.use(cookieParser()) | ||
115 | 118 | ||
116 | // ----------- Views, routes and static files ----------- | 119 | // ----------- Views, routes and static files ----------- |
117 | 120 | ||