Open bernietai opened 3 years ago
I found the same problem that it doesn't work when published to GitHub page. But it works in test server before release
@bernietai .... I am trying to do the same thing, but unable to figure out how. Can you describe how you setup cors-anywhere on freeboard?
@appukuttan-shailesh the simplest way is to use a freely available proxy server such as one setup by @Rob--W: https://cors-anywhere.herokuapp.com/. Read about how to use it here https://github.com/Rob--W/cors-anywhere/
Alternatively build your own using his code. I set one up locally and spin it up together with freeboard on docker containers. This gives you a little flexibility since you can configure your cors-anywhere server with additional parameters.
Thanks for your reply @bernietai . I was using the free one setup by Rob-W till some months back. But it is no longer suitable for use in production as there are some limitations in place now, which requires manual intervention from time to time. At the time I was trying to setup a build myself, but was having trouble getting it to work. But I have since moved on and found workarounds. Thanks for your time.
I found thingproxy to be problematic.
I have implemented cors-anywhere https://github.com/Rob--W/cors-anywhere/ instead. Works well with freeboard.