Closed abnerjacobsen closed 7 years ago
Firstly, I got a browser warning when trying open your API by link, may be you have some problem with HTTPS SSL certificate. Secondly, see this: https://stackoverflow.com/questions/33645511/why-my-ajax-showing-preflight-is-invalid-redirect-error
Thirdly, when I'm skipping warning, site redirect me to another site, and this is root of the evil, because XMLHTTPRequest cannot into redirects on another domains.
Thanks, helped a lot.
First of all I am not a javascript programmer.
I'm trying to make a simple call to a remote API on one of my servers. The code is below:
However, the browser reports the following errors:
The copy of res-client.js I'm using was obtained from this URL: https://raw.githubusercontent.com/Amareis/another-rest-client/master/rest-client.js
What am I doing wrong ?
Thank you.