A Twitter API client library for React Native. Currently not maintained as my main motivation of creating this library was to use the User Streams API.
MIT License
39
stars
20
forks
source link
Response for preflight has invalid HTTP status code 400 #15
Hi guys !
I am getting one problem when I implement rest.post:
rest.post('favorites/create', {} , params) .then( (response) => { console.log(response); })
I get this error :
Failed to load https://api.twitter.com/1.1/favorites/create.json?id=925595570147811328: Response for preflight has invalid HTTP status code 400
Header : Authorization : OAuth oauth_consumer_key="my_customer_key", oauth_nonce="29655190774014173", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1511577580", oauth_token="user_token", oauth_version="1.0", oauth_signature="fB2ZMDv19bsVX55BrpD1pBEyjKk%3D"
I am sure that my Authorization header is working, because It works on Postman.