CORS Can Be An Overhead
The Snakeoil OS Web App is using responses from multiple web servers to give you the one single HTML experience. This can be dangerous! Imagine going to your Bank’s website and be served data from a web server that’s not owned by the banks! CORS is the technology that protects you against malicious websites.
CORS is short for Cross-origin resource sharing. Wikipedia can better explain how CORS works behind the scenes.
While CORS is well and good, consider how it was working in 1.0.0 (Golden Ears).
The browser is making two connections to two different resources on the Snakeoil computer. The two connections are extra overheads on both your client and the Snakeoil PCs. This can be simplified!
This is how it works now in Snakeoil OS 1.1.0 (Blind Testing). Your web browser now only talks to a single web server, and the web server in turn communicates with any other servers internally. In IT geek speak the web server now acts as a proxy to the REST server.
We can explain how this is better - for example:
- Communications between the web and REST server now works on the much quicker 127.0.0.1 interface instead of the Ethernet card.
- A lot less port open/close operations compared to before (CPU intensive operations)
Mumbo jumbo aside, this optimisation subjectively yields a better sonic quality.