Afaik, there is no limitation to use TMS XData with Delphi Pro, so this approach should work.
I'm confused. How do I create a xdata linux server then?
Ah, sorry, I missed the lack of Linux compiler in the Pro version. This is indeed problematic.
There are a couple of options mentioned here:
A 404 error would indicate the used URL is incorrect.
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST");
header("Access-Control-Allow-Headers: X-Requested-With");
$data = [ 'a', 'b', 'c' ];
echo json_encode($data);
?>
Do you use the exact same URL?
I'm afraid that made no difference. And yes, I copied and pasted the URL.
Maybe you can check with a (free) tool like Fiddler what is different in the requests
https://www.telerik.com/fiddler
I had some similar issues when serving via PHP. I don't know PHP at all but I referenced the BLOG here on this site where a user posted a how-to on a To-Do project using PHP to serve up the data. the project zip is in the blog post for DL. Maybe that would help?
Thanks guys. I'll take a look.
Just to let you now it is now working fine.
Thanks for informing!