Try removing app.enable('trust proxy')
Revert "Try removing app.enable('trust proxy')"

This reverts commit ed06e2f1544bbdf773f1f497be65d21973b4bfd3.
Fuck Heroku. This error is probably on the hosting platform.