Copy server-client.html
into your server. E.g. it is http://aurelijus.banelis.lt/server-client.html
Run php -S localhost:12345 localhost-server.php
You should see 3
in http://localhost:12345/?a=1&b=2
You should see 1+2 = 3
when opened server-client.html
on your own server.
Access-Control-Allow-Origin: *
allows cross site scripting.
Prezentation http://aurelijus.banelis.lt/prezentations/client-server-2015/inverting-client-server.pdf