I am getting this error on the hosting server. All ajax request are failing with 403 Forbidden error.I am having this issue with XHR Request i.e Ajax Call Put Request. I'm getting this error after modification to htaccess file.
<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>
Do you have $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); in the app.js file? Additionally what are you trying to do with the htacces modification?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community