Refused to connect to [Any Url] because it violates the following Content Security Policy directive

I am trying to access data within post method and its name is Login() but when URL is transfer to its location at that time Error is generated.

Error:-Refused to connect to '' because it violates the following Content Security Policy directive: "default-src 'self' data: gap: 'unsafe-eval'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.

I packed the "Allow-Control-Allow-Origin: *" extension and installed it into chrome but it does not work.


 $scope.Login = function (callback) {
        method: "Post",
        url: "",
        params: {
            Password: $('#Password').val(),
            Email: $('#Email').val(),
            crossDomain: true
    }).success(function (data) {

        //Do Something here

    }, callback)
    .error(function (data, errorThrown) {

       //Do Something here

    }, callback);


You need to install the whitelist plugin to allow XHR support in your Cordova app. You can't make external requests without it.

Run: cordova plugin add .git


 ? SyntaxError: Unexpected token o at Object.parse (native) AngularJS
 ? How to pass client-side parameters to the server-side in Angular/Node.js/Express
 ? Testing backend API via $http in AngularJS/karma/jasmine tests?
 ? With AngularJS, I don't want to set the global $http.defaults.headers.common. Can I send my custom header with each $resource call?
 ? How to mock an angular $http call and return a promise object that behaves like $http
 ? Pushing or Unshifting into the transformRequest array of $http (non-global)
 ? expectHEAD is documented but not implemented?
 ? AngularJS, $http.get() and "controller as"
 ? Building OData $filter URLs with an Angular provider
 ? Post Request going to Pending state