parent
db5da3d3c2
commit
c07d40ae93
@ -28,6 +28,7 @@
|
|||||||
"class-validator": "^0.12.2",
|
"class-validator": "^0.12.2",
|
||||||
"class-validator-jsonschema": "^2.0.3",
|
"class-validator-jsonschema": "^2.0.3",
|
||||||
"consola": "^2.15.0",
|
"consola": "^2.15.0",
|
||||||
|
"cookie-parser": "^1.4.5",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
@ -82,4 +83,4 @@
|
|||||||
],
|
],
|
||||||
"delay": "2500"
|
"delay": "2500"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
|
import cookieParser from "cookie-parser";
|
||||||
import { Application } from "express";
|
import { Application } from "express";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loader for express related configurations.
|
* Loader for express related configurations.
|
||||||
* Currently only enables the proxy trust.
|
* Currently only enables the proxy trust.
|
||||||
*/
|
*/
|
||||||
export default async (app: Application) => {
|
export default async (app: Application) => {
|
||||||
app.enable('trust proxy');
|
app.enable('trust proxy');
|
||||||
|
app.use(cookieParser());
|
||||||
return app;
|
return app;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user