I want to use resource with a cookie set in the navigator.
With $http it is really easy, as I only need to set withCredential to true:
$http({
method: 'POST',
url: url,
data: user,
withCredentials: true
});
But for $resource, I didn't find a solution to dot the same... I saw a discussion on github about that but I think that settings withCredential to true for all requests is not okay. Do you have an idea about how to do it?