跨源请求已阻止 angular JS post 请求
Cross-Origin Request Blocked angular JS post request
我使用 cordova 和 angular js.When 我尝试从我的应用程序登录我的网络服务然后我收到以下错误:
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.
有人帮忙吗?
您必须在 Web 服务器上的网站上启用 CORS。 CORS 可防止其他站点或应用程序在未经您许可的情况下访问您的网络服务。
我使用 cordova 和 angular js.When 我尝试从我的应用程序登录我的网络服务然后我收到以下错误:
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.
有人帮忙吗?
您必须在 Web 服务器上的网站上启用 CORS。 CORS 可防止其他站点或应用程序在未经您许可的情况下访问您的网络服务。