XMLHttpRequest from JavaScript to LC Server

Ralph DiMola rdimola at evergreeninfo.net
Sun Jan 13 21:32:18 CET 2019

Example LC server script and Html page==>

I cleaned it up a bit and removed debugging code. In the end it's
deceptively simple but there was a fair amount of scratching-and-sniffing
along the way. I commented the highlights. If you have any questions just
fire away.

Here's what I have working:
1) Methods==> Get and Post.
2) Cross Domain==>CORS policy satisfied. This allows you field LC Server
requests from a different domain. You can choose what domains to accept
requests from to maintain server security.
3) Sync and Async JavaScript requests to LC Server.
4) LC Server sessions maintained.
5) Creating cookies from LC server request.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

More information about the use-livecode mailing list