I have the problem that with my own server i cant make a request.
When i use the exampe, it all works:
var url = ‘https://cors-test.appspot.com/test’;
.controller(‘MainCtrl’, function($scope, $http) {
$http.get(url).then(function(resp) {
}, function(err) {
})
})
but, when i use my own url, for example:
var url = ‘https://myServer.com/test’;
than i get err.status == 0
So i asked myself what is written in ‘https://cors-test.appspot.com/test’ ?
Maybe the content in my test-file is wrong. Or has it todo something with my server config ?
Furthermore, how can i call a php script ?