简体   繁体   中英

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? ie: 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.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM