Not sure what I'm doing wrong, but I can't get to square one on the
simple task of requesting a shortened URL.
When I try to call the API from JavaScript, I just get a 404 error in
FF. Chrome has a somewhat more helpful error in the console:
(I substituted ACCESS for my access token and HOST for my hostname)
XMLHttpRequest cannot load
https://api-ssl.bitly.com/v3/shorten?access_token=ACCESS&longUrl=https%3A%2F%2FHOST%2F%2Fdb%2Fbg63bpbwq%3Fa%3Dq%26qid%3D1.
Origin
https://HOST is not allowed by Access-Control-Allow-Origin.
I thought that the API allowed CORS from all domains? That's what the
documentation says (
http://dev.bitly.com/cors.html).
If I enter the URL directly on the browser address bar in either
browser, I get the following response: { "data": [ ], "status_code":
500, "status_txt": "UNKNOWN_ERROR" }
Can anyone please help me figure out what's not working?
Thanks very much!
Julie