Hy,
I try to use Ionic push notification, but it doesnt work.
when i send a request to : “https://apps.ionic.io/api/v1/app/d0176479/users/identify using” this part of code :
$scope.identifyUser = function(){
var user = $ionicUser.get();
console.log(user);
if(!user.user_id){
user.user_id = $ionicUser.generateGUID();
}
angular.extend(user, {
name: “elmoromourad”,
bio: “a description here”
})
$ionicUser.identify(user).then(function(success){
$scope.identified = true;
console.log("name : “+user.name+” id: "+user.user_id);
},function(error){
console.log(error);
})
}
the request already : forbidden (403)
CSRF verification failed. Request aborted.
You are seeing this message because this site requires a CSRF cookie when submitting forms. This cookie is required for security reasons, to ensure that your browser is not being hijacked by third parties.
If you have configured your browser to disable cookies, please re-enable them, at least for this site, or for ‘same-origin’ requests.
any help please !