How can I upload my own data to live.datatables.net for ajax usage?
How can I upload my own data to live.datatables.net for ajax usage?
Link to test case: https://live.datatables.net/nowaqifu/9/edit
Debugger code (debug.datatables.net):
Error messages shown: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resourc
Description of problem:
Tried to load ajax data via url, but it was blocked.
The sample data in https://live.datatables.net/examples/ajax/data/arrays.txt can not reproduce my issue, is there a way that I can upload data to the domain datatables.net?
This question has an accepted answers - jump to answer
Answers
Tried to upload data by picture upload here
https://datatables.net/forums/uploads/editor/zt/xwfmfabfw6as.txt
It seems the live.datatables.net also block request the above data from https://datatables.net/forums/uploads/editor/zt/xwfmfabfw6as.txt
https://live.datatables.net/nowaqifu/11/edit
It's CORS that blocks the cross domain Ajax request.
At the moment, no, there is no way to provide custom JSON on our live pages. However, it is possible to do with JSFiddle. See their docs here.
Other tools such as StackBlitz allow whole stacks to be run, including hosting of JSON files.
Allan
Hi @allan ,
Thanks, I am trying to load on my local environment.
By the way, is there a close option for the discussion here? just like the close issue feature on github. We can close this discussion.
No. Discussions are left open until they are archived. You can mark those opened as "Questions" as having been answered though.
Allan