Change the address of the server for the API and the allowed origin of the message to correspond to the new environment.