title: Angular log in doesn't work iphone 6
body: <p>i have a problem with log in in my site - it doesn't work on iphone 6.
  Here's my code:</p>
  
  <p>JS:</p>
  
  <pre><code>$scope.signin = function() {
          $http({
              method: 'POST',
              url: link,
              data: $.param({
                  action: 'sign_in',
                  username: $scope.username,
                  password: $scope.password
              }),
              withCredentials: true,
              headers: {'Content-Type': 'application/x-www-form-urlencoded'}
          })
              .then(function successCallback(response){
                  if (response.data === true)
                  console.log(response);
                      $location.path('/home');
                  } else {
                      console.log('wrong stuff');
                  }
              }, function errorCallback(response){
                  console.log(response);
                  console.log('error');
              });
      }
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="container" ng-controller="Ctrl"&gt;
     &lt;form class="form-signin"&gt;
         &lt;h2 class="form-signin-heading"&gt;Please sign in&lt;/h2&gt;
         &lt;label for="username" class="sr-only"&gt;Email address&lt;/label&gt;
        &lt;input type="username" ng-model="username" id="username" class="form-control" placeholder="Username" required&gt;
          &lt;label for="inputPassword" class="sr-only"&gt;Password&lt;/label&gt;
         &lt;input type="password" ng-model="password" id="inputPassword" class="form-control" placeholder="Password" required&gt;
          &lt;button class="btn btn-lg btn-primary btn-block" type="submit" ng-click="signin()"&gt;Sign in&lt;/button&gt;
     &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In my website on computer after click "Sign in" i get cookies from server, and angular rout move me to "/home".</p>
  
  <p>When i click "Sign in" on iphone 6 it looks like it is failing when the response returned by the server, and nothing happens. 
  Thanks for answers in advance.</p>