Skip to content

Response for preflight has invalid HTTP status code 400 #15

@arcesoj

Description

@arcesoj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions