Hi All,
Am facing issue while connecting to webservice
Initially was getting CORS error then added origin in header, then it
started working in chrome but facing '403 forbidden' error in firefox.
In our application we need to support all the browser. Kindly guide me in
fixing this issue.
*Code:*
var loginServices=angular.module('auth', []);
loginServices.service('AuthService', function($http){
this.loginService = function(dataSend) {
return $http({
//url:'http://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&key=API_KEY',
url:'http://domain/sc-communic/registerUser/',
dataType: 'json',
method: 'POST',
data: dataSend,
headers: {
"Content-Type" : "application/json",
"Origin" : "http://localhost:8000",
//"crossDomain" : "true",
}
})
};
return this;
});
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.