This question already has an answer here:
- Refused to connect to [Any Url] because it violates the following Content Security Policy directive 1 answer
Here is my angular controller of a cordova app
angular.module('mobApp.controllers', ['ionic'])
.controller('SignupController', function($scope, $http, $location) {
$scope.submitCommonSignUpForm = function(isValid, formData) {
if (isValid) {
var d = formData;
$http.post('http://X.X.X.X/api/v1.0/basicSignup',formData).
then(function(d){
}).
then(function(e){
});
}
};
});
I am getting 404
for http://X.X.X.X/api/v1.0/basicSignup
but the fact is it exist. Any idea why ?
In my app Inside platform > android > res > config.xml
i haveset <access origin="*" />