@@ -1,7 +1,9 @@
|
||||
import { Application } from "express";
|
||||
import bodyParser from 'body-parser';
|
||||
import cors from 'cors';
|
||||
|
||||
/**
|
||||
* Loader for express related configurations.
|
||||
* Currently only enables the proxy trust.
|
||||
*/
|
||||
export default async (app: Application) => {
|
||||
app.enable('trust proxy');
|
||||
return app;
|
||||
|
||||
Reference in New Issue
Block a user