I´am developing a few Apache Cordova Apps in Visual Studio 2015 and test it with the Ripple Emulator.
Since a few days, my connections to the server doesn´t work anymore.
I get the following error.
XMLHttpRequest cannot load http://xxxxx. 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:4400' is therefore not allowed access. The response had HTTP status code 401.
Based on other questions in stackoverflow, I tried to change the Cross Domain Proxy to Remote or to Local without success.
I also added the <access origin="*" />
to my config.xml
<?xml version="1.0" encoding="utf-8"?>
<widget xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps" id="io.cordova.app" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" defaultlocale="de-AT">
<content src="index.html" />
<access origin="*" />
....
If I started a new chrome-window with the parameter --disable-web-security it works. (But in the new chrome-window, I can´t debug with visual studio.)