$. Ajax crossDomain

The default value of the crossDomain option for the

Jquery ajax method is false.
in the case of cross-domain (CORS and Jsonp), Method are considered as GET and POST.
when this value must be set to true. Under what circumstances can not be set.

in the cross-domain case, when I test the code, I don"t have to set it in the case of jsonp, that is, the default value is false

.

generally applies to jsonp
official documentation says: if you want to execute jsonp in the same domain, plus, in addition, when redirect on the server

Menu