The first 2 is what I used to distinguish the output. No matter where the get is, the array after 2 will be returned
Access-Control-Allow-Origin:*
was also added to the previous api header.
It is normal on ios, but the real machine and simulator of Android return 404
How to solve this
漂亮男人2017-05-15 16:56:54
After checking cordova-plugin-whitelist, this situation is probably cross-domain, and then the program uses options to request first, but your server does not process the options, so 404 is displayed. (The above content is a guess)