Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49164

Forbidden (403) CSRF verification failed

$
0
0

@elmoromourad wrote:

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 !

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>