angular.js - AngularJS $http is used in Ionic. The Android version cannot connect, but the IOS version is normal.
高洛峰
高洛峰 2017-05-15 16:54:54
0
1
528

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

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
漂亮男人

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)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template