4.1.1 claims I'm not using HTTPS while --trustProxy=1; 4.1.0 does not #2151
Labels
state:duplicate
Duplicate of already reported issue
type:bug
Impaired feature or lacking behavior that is likely assumed
New Issue Checklist
Issue Description
Using Heroku, I need to run the app with
--trustProxy=1
, but it doesn't seem to work using Dashboard 4.1.1; the same cmdline option works with 4.0.0 and 4.1.0.While you're at it, you could add another option (e.g.
--trustProxy=2
) that would check the conditionreq.header('x-forwarded-proto') !== 'https'
for determining whether to reject.Steps to reproduce
package.json :
{
"name": "my-parse-dashboard",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node ./index.js --config ./parse-dashboard-config.json --trustProxy=1",
"test": "echo "Error: no test specified" && exit 1"
},
"author": "",
"license": "",
"dependencies": {
"parse-dashboard": "4.1.1"
}
}
index.js :
require('parse-dashboard/Parse-Dashboard/index.js')
Actual Outcome
"Parse Dashboard can only be remotely accessed via HTTPS" while accessing the server with a https url
Expected Outcome
seeing the login screen then being able to login and use the app
Environment
Dashboard
Server
Database
The text was updated successfully, but these errors were encountered: