Android设备上的访问控制允许起源错误

时间:2018-09-10 13:44:26

标签: api cors ionic3 mamp

我正在开发Ionic v3应用程序,并且正在尝试在Android设备上对其进行测试。

我有一个本地PHP API,并且想在我的设备上使用它。 我已经安装了白名单插件,并将Access-Control-Allow-Origin: *添加到我的API中。

但是我有一个错误:Failed to load http://xxx.xx.xx.xxx/app/checkappversion?version=0.0.1&checksum=e6f25c700fa58ef9763beeabce4a373f17d72b53: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxx.xx.xx.xxx:8100' is therefore not allowed access.

如果有人可以告诉我是否忘记了什么?

0 个答案:

没有答案
相关问题