fix(*): fix cors issues in client-server communications
Solves CORS issues that existed when the client and server where in different urls.
It also standardizes environment variables into a protocol-host-port split for both client and server, so that separate parts of the url can be applied to separate cases. (eg. you might need localhost:3000
without the http part to build ws://localhost:3000
).
The same has been done to the underlying client and server libs, which have been updated.