Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

104
Views
403 forbidden after making a GET request though jQuery

I am trying to get users from base in Laravel on typeahead in search, but I am getting an error:

jquery-2.2.0.min.js:4 GET https://...../master/users/searchresult?query=sy 403 (Forbidden)

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-3-typeahead/4.0.2/bootstrap3-typeahead.min.js"></script>
<script>
  $(document).ready(function() {
    $('#userdatatable').DataTable();
  });
</script>
<script type="text/javascript">
  var path = "{{ url('/master/users/searchresult') }}";
  $('#search').typeahead({
    minLength: 2,
    source: function(query, process) {
      return $.get(path, {
        query: query
      }, function(data) {
        console.log(data);
        return process(data);
      });
    }
  });
</script>
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!