"CORS request rejected: https://api.ionic.io/auth/login/facebook"


#1

I am running ionic using Visual Studio Android emulator and trying to authenticate a user through facebook using -

Ionic.Auth.login(authProvider, authSettings, loginDetails)
.then($scope.authSuccess, $scope.authFailure);

The call fails with the message in the post title. Anyone know how to get this to work?


#2

Had the same problem. For me it was just that I forgot to set the ionic.co domain and https://ionic.io site url informations on my facebook app.