Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with firefox #32

Open
robbiemu opened this issue Dec 15, 2017 · 1 comment
Open

Doesn't work with firefox #32

robbiemu opened this issue Dec 15, 2017 · 1 comment

Comments

@robbiemu
Copy link

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.

@louiscenter
Copy link

@robbiemu would you be able to submit a PR for this? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants