How to fix 403 Forbidden from Ajax Call while using datatables
How to fix 403 Forbidden from Ajax Call while using datatables

Working based on https://datatables.net/examples/data_sources/server_side.html
$(document).ready(function() {
$('#example').DataTable( {
"processing": true,
"serverSide": true,
"ajax": "response1.php",
"columns": [
{ "data": "empid" },
{ "data": "empname" },
{ "data": "salary" }]
} );
} );
When calling response1.php - I get the required output in correct format, but when i include the call in ready as given in the above code , I get
DataTables warning: table id=example - Ajax error. For more information about this error, please see http://datatables.net/tn/7.
On debugging i get 403 from the browser. Please help. response1.php in the same directory. Tried calling with the full URL also.
Answers
The server is blocking the client for some reason. Do you have any access restrictions on the server?
Allan