Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response for preflight has invalid HTTP status code 400 #15

Open
arcesoj opened this issue Nov 25, 2017 · 0 comments
Open

Response for preflight has invalid HTTP status code 400 #15

arcesoj opened this issue Nov 25, 2017 · 0 comments

Comments

@arcesoj
Copy link

arcesoj commented Nov 25, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant