Aline Golvalve
Aline Golvalve

Reputation: 13

Trying to understand JSONP on jquery

Well i would like to know something about JSONP,

like when someone enter in my website and i do a ajax request with dataType JSONP,

this request will be done like when this same person enter direct in this page? i.e: this page that ajax will request with JSONP get the IP of the user,

it will get the real ip of this user? similar to a iframe i mean.

thanks.

Upvotes: 1

Views: 66

Answers (2)

jwueller
jwueller

Reputation: 30991

Every request to a server contains the client's IP address. This also applies to JSONP, which is implemented using an HTTP GET request.

Upvotes: 2

Guffa
Guffa

Reputation: 700910

Yes, the call is made by the browser, so it will use the IP address and settings of the user.

A JSONP call is actually a script tag that makes the request, so it will look to the server just as any other script tag loading script from the server.

Upvotes: 1

Related Questions