Android Cordova 5.4.0 404未找到(来自缓存)白名单CORS http POST请求

Android Cordova 5.4.0 404未找到(来自缓存)白名单CORS http POST请求,android,cordova,visual-studio-2015,visual-studio-cordova,Android,Cordova,Visual Studio 2015,Visual Studio Cordova,我刚刚用最新的Cordova工具更新了我的Visual studio 2015。 我将Cordova更新为5.4.0,并尝试使用Cordova android 4.1.1和5.0.0 我的错误是当我尝试向我的Web服务(CORS)发出post请求时: 以下是我的Android设备上的响应: Request URL:http://ws.MyService.be/PostBug.axd Request Method:POST Status Code:404 Not Found (from cach

我刚刚用最新的Cordova工具更新了我的Visual studio 2015。 我将Cordova更新为5.4.0,并尝试使用Cordova android 4.1.1和5.0.0

我的错误是当我尝试向我的Web服务(CORS)发出post请求时:

以下是我的Android设备上的响应:

Request URL:http://ws.MyService.be/PostBug.axd
Request Method:POST
Status Code:404 Not Found (from cache)
Response Headers
Client-Via:shouldInterceptRequest
Request Headers
Provisional headers are shown
Accept:application/json, text/plain, */*
Cache-Control:no-store, no-cache, must-revalidate
Content-Type:application/json
Origin:file://
User-Agent:Mozilla/5.0 (Linux; Android 5.0; SM-G900F Build/LRX21T; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/46.0.2490.76 Mobile Safari/537.36
在config.xml中:

<access origin="*" />
<allow-navigation href="http://*.infotec.be/*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
但即使使用安卓4.1.1,我也会遇到这个错误 代码和服务没有改变,只有cordova的版本和所有更改。和Visual studio更新

编辑:

我可以和邮递员联系这项服务

我刚刚更新到cordova插件白名单1.1.1-dev


重建我的应用程序后,我现在在所有http请求上都有net::ERR\u CACHE\u MISS,并且所有都处于(失败)状态。。。没有HTTP响应(正文或标题)

Cordova 5.4存在许多问题,并且与visual studio和Windows不兼容。我建议回滚到5.3版本,直到Cordova社区发布一个适用于Windows场景的版本

在发布更新时,我们通常会在VisualStudio中对Cordova的默认版本进行修订,但由于这些问题,我们将跳过5.4


(披露:我在微软的visual studio中为Apache Cordova开发工具)

你能通过其他方式使用该服务吗?您的服务器是否需要刷新缓存?我想知道这是否与服务器缓存有更多关系,然后您的Cordova将更新。我将更新我的答案。我可以通过邮递员访问该服务,该服务获取post数据并将其插入数据库。所以没有cache@Jerome2606我也有同样的问题。降级到Crodova 5.3.3似乎并不能解决这个问题。你也降级了Cordova Android吗?谢谢你的评论。我开始学习Cordova 5.3.3,一切正常。即使我使用remotebuild使其在Android和IOS上也能正常工作,我也有同样的错误。我回滚到5.3.3,但问题仍然存在。有什么想法吗?
<meta http-equiv="Content-Security-Policy" content="default-src 'self' http://ws.MyService.be http://www.infotec.be https://push.ionic.io data: gap: maps.googleapis.com maps.gstatic.com https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *;script-src 'self' 'unsafe-eval' 'unsafe-inline';">
cordova platform update android@4.X.X