I use cordova and angular js.When I try to login my webservice from my app then I get the following error:
我使用cordova和角js。当我试图从我的应用程序登陆我的webservice时,我得到了以下错误:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the
remote resource at http://devsandipon2.dhaka.vantage.com/webservice.php. This
can be fixed by moving the resource to the same domain or enabling CORS.
Any one help?
任何一个帮助吗?
2
You have to enable CORS on your site on web server. CORS prevents the other sites or application of accessing your webservices without your permissions.
您必须在web服务器上启用CORS。CORS可以防止其他站点或应用程序在没有您的权限的情况下访问您的web服务。
Take a look at http://enable-cors.org/server.html
看看http://enable-cors.org/server.html。
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2015/01/20/cd392530cd7a1a4b267557e85a8cf6ae.html。