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.
<IfModule mod_rewrite.c>
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]
</IfModule>
I am having public files in public_html and other folders on the root directory.
I am having the files in the path API\MyContorller and the route
Route::apiResources(['post' => 'API\MyContorller ]);
I am having this issue with XHR Request i.e Ajax Call Put Request
I am calling update method to update the table in the vue Component
updateQuiz(){
this.form.put('/api/chapter/'+this.$route.params.id + '/quiz/' + this.form.id);
}