I am working on Angular2 application, which which is using OpenWRT UCI system as a interface to configure WiFi and Network setting of the device.
This should become web interface for the device. I am approaching it as web application, which can be used to configure and manage fleet of devices.
Long story short. I faced
Access-Control-Allow-Origin, where browser is blocking responses from non originating server.
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Check my Gist for solution.