aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.ts b/server.ts
index fb01ed572..5511c5435 100644
--- a/server.ts
+++ b/server.ts
@@ -12,6 +12,7 @@ import * as bodyParser from 'body-parser'
12import * as express from 'express' 12import * as express from 'express'
13import * as morgan from 'morgan' 13import * as morgan from 'morgan'
14import * as cors from 'cors' 14import * as cors from 'cors'
15import * as cookieParser from 'cookie-parser'
15 16
16process.title = 'peertube' 17process.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
117app.use(cookieParser())
115 118
116// ----------- Views, routes and static files ----------- 119// ----------- Views, routes and static files -----------
117 120