Freeboard / thingproxy

A simple forward proxy server for processing API calls to servers that don't send CORS headers or support HTTPS.
MIT License
325 stars 115 forks source link

CORS proxy using cors-anywhere #10

Open bernietai opened 3 years ago

bernietai commented 3 years ago

I found thingproxy to be problematic.

I have implemented cors-anywhere https://github.com/Rob--W/cors-anywhere/ instead. Works well with freeboard.

rk0cc commented 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

appukuttan-shailesh commented 3 years ago

@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?

bernietai commented 3 years ago

@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.

appukuttan-shailesh commented 3 years ago

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.