throw new Error(errorMessage)
}
+// Trust our proxy (IP forwarding...)
+app.set('trust proxy', CONFIG.TRUST_PROXY)
+
// ----------- Database -----------
// Initialize database and models
) {
return (cors({
origin: 'http://localhost:3000',
+ exposedHeaders: 'Retry-After',
credentials: true
}))(req, res, next)
}