title: "403 Forbidden You don't have permission to access" in the laravel
body: <p>All ajax request are failing with 403 Forbidden error. Is it due to htaccess. I am having this issue after hosting it on the server.I have changed the .htaccess as below.</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  AddHandler application/x-httpd-php72 .php
      RewriteEngine On
      # Removes index.php from ExpressionEngine URLs  
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I am having public files in public_html and other folders on the root directory.</p>
  
  <p>I am having the files in the path API\MyContorller and the route
   <code>Route::apiResources(['post' =&gt; 'API\MyContorller ]);</code></p>
  
  <p>I am having this issue with XHR Request i.e Ajax Call Put Request</p>
  
  <p>I am calling update method to update the table in the vue Component</p>
  
  <pre><code> updateQuiz(){
              this.form.put('/api/chapter/'+this.$route.params.id + '/quiz/' + this.form.id);
  
  }
  </code></pre>