Add some sources to be used for any ServerSide or Ajax sourced tables on live.datatables.net
Add some sources to be used for any ServerSide or Ajax sourced tables on live.datatables.net
Sometimes, I use the live.datatables.net page to mock up some DataTables examples, or trouble shooting. I was trying to setup an Ajax sourced table using the Ajax data source (objects) example source code, and setting the ajax
value to _https://datatables.net/examples/ajax/data/objects.txt_.
However, due to security reasons, this gets blocked by the browser (which I kinda expected). The exact error is:
XMLHttpRequest cannot load https://datatables.net/examples/ajax/data/objects.txt?_=1470258086855. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://live.datatables.net' is therefore not allowed access.
So I just thought it would be neat if there were some sources that could be used for the serverSide
and ajax
features within the live.datatables.net page.
Thanks!
Replies
Hi,
There are a few available, which are documented here (you can access that page from the DataTables JSBin by clicking the "Help" menu at the top right and then the first item in that list.
Allan
Oh cool - Thanks!