title: 403 forbidden after making a GET request though jQuery
body: <p>I am trying to get users from base in Laravel on typeahead in search, but I am getting an error:</p>
  <blockquote>
  <p>jquery-2.2.0.min.js:4 GET https://...../master/users/searchresult?query=sy 403 (Forbidden)</p>
  </blockquote>
  <pre class="lang-html prettyprint-override"><code>&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/bootstrap-3-typeahead/4.0.2/bootstrap3-typeahead.min.js&quot;&gt;&lt;/script&gt;
  &lt;script&gt;
    $(document).ready(function() {
      $('#userdatatable').DataTable();
    });
  &lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
    var path = &quot;{{ url('/master/users/searchresult') }}&quot;;
    $('#search').typeahead({
      minLength: 2,
      source: function(query, process) {
        return $.get(path, {
          query: query
        }, function(data) {
          console.log(data);
          return process(data);
        });
      }
    });
  &lt;/script&gt;
  </code></pre>