I have a simple PHP script that I am attempting a cross-domain CORS request:
Many description internet-wide don't mention that specifying Access-Control-Allow-Origin is not enough. Here is a complete example that works for me:
Access-Control-Allow-Origin
'OK', ]; print json_encode($ret);