Endpoints returning HTML document instead of pure JSON?

shootwhatsmyname@lemm.ee to Lemmy App Development @lemm.ee – 1 points –
lemmy.ml

Any ideas how to get the endpoints to return pure JSON? This only happens when using fetch in the browser as far as I can tell, when using curl in the command line I get pure JSON. I’m using the lemmy-js-client and it’s throwing errors because of this as well

0

No comments yet. You could be first!