Skip to content

Cannot POST /login using latest version #2060

Open
@andresteves

Description

@andresteves

New Issue Checklist

Issue Description

Setup new server with latest parse-server and parse-dashboard results in the below screenshot error.

Latest version of dashboard
Captura de ecrã 2022-03-16, às 15 35 27

I am using express and the using the following to init parse-dashboard:

var dashboard = new ParseDashboard({
  "apps":dashboards,
  "iconsFolder": "icons",
  "users": [
    {
      "user":"username",
      "pass":"password"
    }
  ],
  "useEncryptedPasswords": false,
  "trustProxy": 1
},true);

var app = express();
app.use(helmet());
app.set('view engine', 'pug');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use('/parse', api);
console.log(servers[0]);
for (var i = 0; i < servers.length; i++) {
    //Add clients
  app.use('/parse', servers[i]);
}

app.use('/dashboard/', dashboard);

dashboards above is an array of objects.

Steps to reproduce

Actual Outcome

I see Cannot POST /login

Expected Outcome

Dashboard apps shown

Environment

├── @parse/[email protected]
├── @parse/[email protected]
├── @parse/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Dashboard

  • Parse Dashboard version: 4.0.1
  • Browser (Safari, Chrome, Firefox, Edge, etc.): Safari, Brave
  • Browser version: 1.36.112 Chromium: 99.0.4844.51](https://brave.com/latest/)

Server

  • Parse Server version: 5.0.0
  • Operating system: Debian 10
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 5.0.0
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions