Fix issue that doesn't send the cookie with restangular request