I will not talk about the principles of jsonp. Today, jQueryajaxjsonp is used for POST requests. It is OK without cross-domain requests, in cross-origin scenarios, parameters like $ _ POST ['name'] cannot be accepted, and $ _ GET ['Nam
I will not talk about the principles of jsonp. Today, we use jQuery ajax jsonp for post requests. It is OK without cross-origin requests, in cross-origin scenarios, parameters like $ _ POST ['name'] cannot be accepted. $ _ GET ['name'] is acceptable because:
JQuery does not support cross-origin post. Later versions of jquery will automatically convert POST requests to GET requests.
So jquery does not support post cross-origin?
Although the use of post + dynamic iframe can achieve the purpose of post cross-origin, it is not recommended to use.
It can also be said that the cross-origin of the get method is legal, and the post method is considered illegal from the security point of view.