All checks were successful
continuous-integration/drone/pr Build is passing
ref #41
14 lines
391 B
TypeScript
14 lines
391 B
TypeScript
import cookieParser from "cookie-parser";
|
|
import { Application } from "express";
|
|
/**
|
|
* Loader for express related configurations.
|
|
* Configures proxy trusts, globally used middlewares and other express features.
|
|
*/
|
|
export default async (app: Application) => {
|
|
app.enable('trust proxy');
|
|
app.disable('x-powered-by');
|
|
app.disable('x-served-by');
|
|
app.use(cookieParser());
|
|
return app;
|
|
};
|