title: Laravel 5.5 : 419 unknown status with AJAX
body: <p>I am requesting <code>POST</code> :</p>
  
  <p>Route :</p>
  
  <p><code>Route::post('/register','CommonController@postRegister')-&gt;name('register');</code></p>
  
  <p>CSRF Meta tag :</p>
  
  <p><code>&lt;meta name="csrf-token" content="{{ csrf_token() }}"&gt;</code></p>
  
  <pre><code>$("#submitSalonForm").click(function(e) {
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });
    $.ajax({
        url: "/register",
        type: "post",
        data: new FormData($('form')[1]),
        cache: false,
        contentType: false,
        processData: false,
        success:function(response) {
            return alert('Form 2 submitted');
        }
    });
  });
  </code></pre>
  
  <p><strong>And the exception :</strong></p>
  
  <p><a href="https://i.stack.imgur.com/9QpFO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9QpFO.png" alt="Exception screenshot"></a></p>
  
  <p><strong>The exception comes sometimes and sometimes the code runs smoothly, I have no idea what am i missing here.</strong></p>