As a step 1 check your letter case, Linux is case sensitive.
If live server is HTTPS, make sure all your calls are https.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a project thats working well on localhost but when i uploaded to the server the post ajax calls stopped working... It says 405,
$.ajax({
url: url,
method: 'post',
cache: false,
contentType: false,
processData: false,
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
data: data,
success(response) {
console.log(response)
},
error(response) {
}
})
Route::post('/chart/save/points', 'DataController@save')->name('office.charts.generate.save');
This is my routes file...
What could be the cause?
Please or to participate in this conversation.