0

For my personal website, I'd like to create a page summarizing my social presence.

I used Postman to make sure all my queries are valid. So I made simple call to get my last post on twitter.

Everything works find on Postman, so there isn't any Authorization issues.

But when it comes to implement it on my client (using AngularJs ), I'm getting this error:

OPTIONS https://api.twitter.com/1.1/statuses/user_timeline.json?user_id=1106474965 400 ()

XMLHttpRequest cannot load https://api.twitter.com/1.1/statuses/user_timeline.json?user_id=1106474965. Response for preflight has invalid HTTP status code 400

I know it may be related to How does Access-Control-Allow-Origin header work? but I can't configure the server as I subscribed a shared hosting (One.com).

I tried to reset my $httpProvider default values in vein.

Community
  • 1
  • 1

1 Answers1

1

It seems Twitter API doesn't support CORS headers, and that's why your preflight tests are failing: https://twittercommunity.com/t/will-twitter-api-support-cors-headers-soon/28276