Skip to content Skip to sidebar Skip to footer

Calling Twitter's Api With Jsonp Datatype Will Throw A 400 Error

When trying to perform an API call to Twitter, I noticed I must use 'jsonp' to bypass the cross-domain problem. Using 'json' dataType will throw a 400 'Control-Allow-Origin' error.

Solution 1:

This is officially unsupported by Twitter as mentioned by their team on this topic I raised on their development forum:

https://twittercommunity.com/t/error-401-problems-with-jsonp-token-with-twitter-rest-api-ajax/73618

Any workarounds found for this topic will be posted directly in that link.

Post a Comment for "Calling Twitter's Api With Jsonp Datatype Will Throw A 400 Error"