Commit 233e6874 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Add missing cookie parser

parent a522c0b7
Pipeline #2369 passed with stages
in 4 minutes and 47 seconds
......@@ -3084,6 +3084,15 @@
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
"integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s="
},
"cookie-parser": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.4.tgz",
"integrity": "sha512-lo13tqF3JEtFO7FyA49CqbhaFkskRJ0u/UAiINgrIXeRCY41c88/zxtrECl8AKH3B0hj9q10+h3Kt8I7KlW4tw==",
"requires": {
"cookie": "0.3.1",
"cookie-signature": "1.0.6"
}
},
"cookie-signature": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
......
......@@ -5,6 +5,7 @@ import { ValidationPipe } from '@nestjs/common';
import * as swStats from 'swagger-stats';
import * as favicon from 'serve-favicon';
import * as path from 'path';
import * as cookieParser from 'cookie-parser';
import { AppLogger } from './app-logger';
async function bootstrap() {
......@@ -13,6 +14,7 @@ async function bootstrap() {
});
app.enableCors({ credentials: true, origin: true, exposedHeaders: 'Content-range' });
app.use(cookieParser());
app.use(favicon(path.join(__dirname, '../favicon.ico')));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment