L
L
Leonid Fedotov2014-05-26 20:14:35
JavaScript
Leonid Fedotov, 2014-05-26 20:14:35

What does X-Insta-Forwarded-For is required for this operation mean?

Trying my hand at writing apps for Instagram. While testing the Instagram API console through Apigee , I tried to subscribe / unsubscribe from a random user - everything works. I tried to substitute the access_token received through my application, but as a result, Instagram gave a 403 error:

{
  "code": 403,
  "error_type": "OAuthForbiddenException",
  "error_message": "Invalid header: X-Insta-Forwarded-For is required for this operation"
}

What does X-Insta-Forwarded-For is required for this operation mean?
Google doesn't even know what it is :(

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
druss, 2014-09-14
@iLeonidze

You need to set the X-Insta-Forwarded-For header field with the value [IP information]|[Signature]
More details here: instagram.com/developer/restrict-api-requests in the Enforce Signed Header section

R
Rsa97, 2014-05-26
@Rsa97

The 'X-' prefix means an extension (eXtension) of the standard set of header fields. 'Insta' is an application that adds a title, most likely instagram. 'Forwarded-For' - usually used by all proxies that pass in this field the real IP of the client who requested the page through them.
That is, this procedure requires setting the 'X-Insta-Forwarded-For' field in the request header with a value, most likely, equal to IP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question