I get the following error message:
Fetch API cannot load https://api.lifx.com/v1/lights/all/state. Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:3000’ is therefore not allowed access. The response had HTTP status code 403. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
However, the request is successful if the content-type header is omitted, but the body is ignored and bulb does not change colour.
I’m not sure if a Access-Control-Allow-Headers header is missing on the api.
It seems they broke many parts of this API over the last few days.
I’m hoping they revert back to the previous API until these issues are resolved since there are too many to simply fix overnight. I also suggest they test modifications thoroughly before releasing to the public and never release major updates before a weekend.
We test our changes thoroughly however we are not perfect and clearly some things have been missed. I recognise that more testing could have been done and in the future we will take this into account.
These changes have been slowly rolled out across the week and we have been responding here the whole time.