05-17-2019 08:38 - edited 05-17-2019 08:39
05-17-2019 08:38 - edited 05-17-2019 08:39
I just started getting this error but I'm confused as to how to fix this in my code.
05-17-2019 13:48 - edited 05-17-2019 13:50
05-17-2019 13:48 - edited 05-17-2019 13:50
I think the CORS setting is set as a header in the server's response, so you need to be able to change the server's behaviour.
...That said, I'm probably wrong because I think others are using that API without problems. Maybe there's an account setting somewhere...
05-17-2019 14:10
05-17-2019 14:10
I've got several data feeds coming into my Versa that I've had no problems with over the past months, suddenly in the past day or so I've gotten all off them giving me this CORS error when I look at the app logs. If that's server side stuff, what has changed in the past couple days to cause my versa to stop being able to read these data streams?
05-17-2019 14:33
05-17-2019 14:33
The error message says the origin is "file://". That's local? How do I get my companion app to properly fetch then?
05-18-2019 09:15
05-18-2019 09:15
After scouring the web, the only solution (really a crappy workaround) I found is to do the following per this web page:
In order to get DarkSky to work with your app, you can use cors-anywhere 271 by putting https://cors-anywhere.herokuapp.com/ in front of your URL:
https://cors-anywhere.herokuapp.com/https://api.darksky.net/forecast/...
I followed the above procedure for every one of my web service calls to various sites in my watch face and it works now. What the heck happened in the past few days that forces me to do this? Are others facing this same issue?