Fixed cross domain issue with RPC on remote domain/app