Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instagram API from client side

I'm trying to call Instagram API endpoints from the client side. I can only access GET-based endpoints using JSONP, which Instagram recommends. For those requiring POST or DELETE, it seems CORS isn't enabled, so these types of ajax calls fail.

Is there any method or approach I can use to access these APIs from the client side?

like image 355
Eric Di Bari Avatar asked Nov 01 '22 02:11

Eric Di Bari


1 Answers

Not possible to make POST calls directly from client side, You have to setup a proxy server that makes the Instagram API calls for POST and DELETE, and your client side app can call the proxy server.

like image 195
krisrak Avatar answered Nov 12 '22 16:11

krisrak