Level 102
Show the removeSaleTemp() function. I assume this is javascript and ajax
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
My delete button
<button class="btn btn-danger btn-xs" type="button" ng-click="removeSaleTemp(newsaletemp.id)">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
</button>
My Route
Route::resource('api/saletemp', 'SaleTempApiController');
When i click on Delete button, it works on my localhost, but when on any hosting server (nginx). it gives me error
403 Forbidden
I don't know why this is happening on Hosting but works on my localhost.
How can I resolve this issue ?
Please or to participate in this conversation.