Angularjs ionic XHR加载失败:POST
我得到了这个错误:Angularjs ionic XHR加载失败:POST,angularjs,ionic-framework,Angularjs,Ionic Framework,我得到了这个错误: XMLHttpRequest cannot load http://localhost/authproject/public/api/auth/login. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://loc
XMLHttpRequest cannot load http://localhost/authproject/public/api/auth/login. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8101' is therefore not allowed access.
ionic.bundle.js:15567 XHR failed loading: POST
有人能告诉我怎么解决这个问题吗 您是否尝试在浏览器上安装并启用它
我添加了Allow Control Allow Origin,但我没有启用它,我如何在浏览器中启用它检查我添加@SondesHello的图像,当我使用
ionic serve
时,从我的浏览器可以正常工作。但是,当我使用一个设备时,它不工作。有办法解决吗?