1

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.

4

2 回答 2

2

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

于 2013-03-30T19:58:03.863 回答
1

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.

于 2013-03-30T19:59:09.150 回答