Datatable Editor Ajax error

Datatable Editor Ajax error

KaharudinKaharudin Posts: 3Questions: 2Answers: 0

after purchased Datatable Editor, im using Generator and follow the instruction. the html keep show

warning
DataTables warning: table id=traffic - Ajax error. For more information about this error, please see http://datatables.net/tn/7

developer preview
Access to XMLHttpRequest at 'file:///C:/xampp/htdocs/php/table.traffic.php?_=1564076407014' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

any idea ?

Answers

  • allanallan Posts: 63,175Questions: 1Answers: 10,409 Site admin

    Yes - browser's will block Ajax to file:// completely for security reasons (otherwise a web page could read any file on your computer!!).

    You need to run it through a web-server.

    Allan

This discussion has been closed.