Search Posts

Category: http

AngularJS $http request issue in HTTP and HTTPS

I have a problem in my angularjs $http request. When I send request to the API it was blocked by the browser like: ERROR IN FIREFOX : Blocked loading mixed active content “http://www.example.com/rest/default/V1/integration/admin/token/” ERROR IN CHROME: Mixed Content: The page at ‘https://www.example.com/load.shtml#/register/pos/docs/2323232221555/new‘ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://www.example.com/rest/default/V1/integration/admin/token/‘. This request has been blocked; the content must be served over HTTPS. How can I fixed this problem? Any idea is accepted. […]

$http requests not working in signed apk Ionic

when i run my cordova ionic app directly on android studio,it’s working and send $http request perfectly. but when i installed signed .apk,http requests doesn’t work Controller.js var postObject = new Object(); postObject.User = $scope.data.username; postObject.Secret = $scope.data.password; $http({ url: ‘https://example.com/’, method: “POST”, data: { ‘message’: postObject } }) .then(function(response) { $cordovaDialogs.alert(‘Success’, ‘Info’, ‘OK’); }, function(response) { $cordovaDialogs.alert(‘Error’, ‘Info’, ‘Error’); }); Config.xml <?xml version=’1.0′ encoding=’utf-8′?> <widget android-versionCode=”1″ id=”com.example.abc” version=”0.1″ xmlns=”http://www.w3.org/ns/widgets” xmlns:cdv=”http://cordova.apache.org/ns/1.0″> <name>Cordova project.</name> <description> Cordova […]

selection value is not reading in angularjs

I have a form, after filling the data in it, I am send it to server through http post method in angularjs, the issue is, it is reading/getting all values except value in the select box, it is reading/getting as null value. <!DOCTYPE html> <html> <head> <title>KunEra ERP</title> <meta charset=”UTF-8″> <meta name=”description” content=””> <meta name=”keywords” content=””> <meta name=”author” content=””> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <!– Booststrap compiled and minified CSS –> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css”> <!– customized […]