mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
Added "trust proxy" to members API app
no issue - match the other express apps, makes sure that we have access to the correct IP and forwarded host names when running behind proxies
This commit is contained in:
parent
b2940692e2
commit
2f55baccd7
@ -13,6 +13,10 @@ module.exports = function setupMembersApiApp() {
|
||||
const apiApp = express();
|
||||
apiApp.use(sentry.requestHandler);
|
||||
|
||||
// Make sure `req.ip` is correct for proxied requests
|
||||
// (X-Forwarded-Proto header will be checked, if present)
|
||||
apiApp.enable('trust proxy');
|
||||
|
||||
// Entire app is behind labs flag
|
||||
apiApp.use(labs.members);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user