@veopot почему бы не сделать это самому? для меня что то вроде такого работает:
var ruChapters = chapterArray.data.chapters.filter(chapter => chapter.language == "ru");
I've been using the cors-anywhere demo server as a proxy and it works to retrieve everything except chapter pages. whenever i try to get a page i get error 400. it says to include an origin or x-requested-by header but i thought the proxy already sets the origin header? really confused why this...
@teasday I see. That makes sense. Since I'm just playing around with it for learning purposes (as you can tell from my low IQ questions) I'll try that proxy server thing. Thanks for taking the time to explain!
@Teasday really sorry if this is a dumb question but does that mean i can't access the mangadex api from a different domain? besides the md team internally, who else would even be able to use it without cross-origin requests?
@sarusa yeah after some debugging (swapping NASA api, etc. in the place of the MD url) I came to the conclusion that it was returning a blank page and my parsing method was fine. I'm dumb as shit and just use XMLHttpRequest or AJAX (forgot to mention im using JS) so idk what all that means but...
feels like a stupid question but I cant seem to parse the api at all. When i replace the md url with any random .json file i parse it fine so I'm completely clueless. It also worked when I just copy pasted the object and tried extracting different values as if it was a local .json file.