Firefox won't auto-recognize json data so you actually ahve to set the content type. Otherwise, it fails out with invalid xml errors -- for example, on the /all request.
On my own server, a solution was found by changing onRequest in server.js:
var onRequest = cors(function (req, res) {
res.setHeader('Content-Type', 'application/json; charset=utf-8')
and removing the same in the section(s) below that had it.
Firefox won't auto-recognize json data so you actually ahve to set the content type. Otherwise, it fails out with invalid xml errors -- for example, on the /all request.
On my own server, a solution was found by changing onRequest in server.js:
and removing the same in the section(s) below that had it.