AWS: fix AJAX RPC calls when the server is proxied with a prefix.