84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Can I use jq ajax to obtain data from different domains? Is it okay to use ajax directly instead of jsonp? What do I need to do with the backend?
jsonp also requires some work on the backend. Basically, if it involves cross-domain, it requires some cooperation from the backend.
http://www.cnblogs.com/2050/p...
You can look at cross-domain related information. You can choose different solutions for complete cross-domain and cross-subdomain.
If you only support modern browsers, you can consider cors, which will be more convenient.
You need to fill in the relevant cross-domain permission header information in the background. . . .
jsonp also requires some work on the backend. Basically, if it involves cross-domain, it requires some cooperation from the backend.
http://www.cnblogs.com/2050/p...
You can look at cross-domain related information. You can choose different solutions for complete cross-domain and cross-subdomain.
If you only support modern browsers, you can consider cors, which will be more convenient.
You need to fill in the relevant cross-domain permission header information in the background. . . .