Sure thing! Here’s my console output:
$ NODE_ENV=development nodemon ./bin/www --exec babel-node
[nodemon] 1.19.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `babel-node ./bin/www.js`
(node:42862) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
🌳 Open your admin UI: http://app.forestadmin.com 🌳
express deprecated res.send(status): Use res.sendStatus(status) instead node_modules/express-cors/index.js:95:45
OPTIONS /forest/sessions-google 200 3.227 ms - 2
POST /forest/sessions-google 200 1357.236 ms - 420
OPTIONS /forest/stats/patients 200 0.622 ms - 2
OPTIONS /forest/stats/users 200 0.481 ms - 2
OPTIONS /forest/choices?fields%5Bchoices%5D=createdAt%2Cid%2Clabel%2CsortIndex%2Cvalue&filterType=and&page%5Bnumber%5D=1&page%5Bsize%5D=15&searchExtended=0&sort=-id&timezone=America%2FDetroit 200 0.507 ms - 2
OPTIONS /forest/choices/count?fields%5Bchoices%5D=createdAt%2Cid%2Clabel%2CsortIndex%2Cvalue&filterType=and&searchExtended=0&timezone=America%2FDetroit 200 0.478 ms - 2
I do have cors configured in app.js
and just tried editing it to allow *
:
app.use(cors({
// allowedOrigins: ['*.forestadmin.com'], // regular policy
allowedOrigins: ['*'], // edited to test this
headers: ['Authorization', 'X-Requested-With', 'Content-Type']
}));
However I see the same results. I even tried commenting that block out completely. There is nothing in the logs and the network requests never complete:
[nodemon] restarting due to changes...
[nodemon] starting `babel-node ./bin/www.js`
(node:42928) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
🌳 Open your admin UI: http://app.forestadmin.com 🌳
OPTIONS /forest/choices?fields%5Bchoices%5D=createdAt%2Cid%2Clabel%2CsortIndex%2Cvalue&filterType=and&page%5Bnumber%5D=1&page%5Bsize%5D=15&searchExtended=0&sort=-id&timezone=America%2FDetroit 204 5.500 ms - 0
OPTIONS /forest/choices/count?fields%5Bchoices%5D=createdAt%2Cid%2Clabel%2CsortIndex%2Cvalue&filterType=and&searchExtended=0&timezone=America%2FDetroit 204 0.478 ms - 0
In fact I only see the cancelled GET
when I navigate to another table:
GET /forest/choices?fields%5Bchoices%5D=createdAt%2Cid%2Clabel%2CsortIndex%2Cvalue&filterType=and&page%5Bnumber%5D=1&page%5Bsize%5D=15&searchExtended=0&sort=-id&timezone=America%2FDetroit - - ms - -
GET /forest/choices/count?fields%5Bchoices%5D=createdAt%2Cid%2Clabel%2CsortIndex%2Cvalue&filterType=and&searchExtended=0&timezone=America%2FDetroit - - ms - -