Rewrites xhr requests to a local proxy