Add proxy code to make xdomain local.