peter-murray / node-hue-api

Node.js Library for interacting with the Philips Hue Bridge and Lights
Apache License 2.0
1.19k stars 145 forks source link

Fix CORS issue when using with Electron #101

Closed jmshal closed 7 years ago

jmshal commented 7 years ago

The axios client auto-switches the adapter to XHR even though the Node APIs are all available. This enforces the http adapter. This was necessary for me to get Electron to use the library.