Dashticz / dashticz_v2

Alternative dashboard for Domoticz
107 stars 62 forks source link

Addition of PHP based CORS proxy #404

Closed lokonli closed 5 years ago

lokonli commented 5 years ago

A PHP based CORS proxy has been integrated.

In case config['default_cors_url'] is defined it will use it as CORS proxy. In case PHP is not installed it falls back to the defined CORS proxy in config['default_cors_url']. In case config['default_cors_url'] is not set, it will use cors-anywhere.herokuapp.com by default.

For normal use just remove the config['default_cors_url'] from your CONFIG.js and it should work.