Closed felixlinker closed 6 years ago
Humm, maybe XHR node polyfill doing some wrong? Can you try to run this code in a browser?
Trying this out in browser "correctly" yields Access-Control-Allow-Origin
error calling the supplied callbacks so I guess it's not your fault but one of the XMLHttpRequest
library!
Hi there,
I tried using this library and following code yielded an error:
When debugging the code in Visual Studio Code the promise resolved successfully with
result
being undefined. Also theerror
callback was not called. The error displayed on the console is the following:Trying the same query in postman works just fine. The result body is:
With following headers: Cache-Control →no-cache Content-Type →application/json Date →Mon, 05 Mar 2018 18:09:49 GMT Transfer-Encoding →chunked
Especially as the promise resolves successfully I don't see me doing anything wrong. But if so I'd be happy to see my error pointed out to me.
Best regards Felix