I need to send (and receive) certain data to the server using jQuery and JSON. It still works, but not a cross-domain, and it should be a cross-domain.
I looked at how to solve this and found JSONP. As far as I see, using JSONP, I have to send a callback and data using GET (JQuery allows you to use the "POST" method as a method, but when I check the web traffic, I see that it actually sends GET and each parameter as parameter).
JSONP also requires changes on the server, because they are waiting for a POST request with JSON data, and they need to implement something to handle the JSONP GET request.
So, I am wondering what is the difference between this and sending data as key value parameters in a GET request?
Is there any difference in the possibility of using a callback? Or what exactly?
Sorry, a little lost ... thanks in advance
source share