quadratic icon indicating copy to clipboard operation
quadratic copied to clipboard

feat: Quadratic Hosted CORS proxy & improved Python API requests overall

Open davidkircos opened this issue 1 year ago • 5 comments

Create a cors proxy and Python Lib to access it that mimics 'requests'.

This will make it much easier to fetch data

  • [ ] Secrets added at proxy level?

davidkircos avatar Apr 04 '23 21:04 davidkircos

Well, CORS has a reason to exist.

That would allow some abuses, and bandwidth for arbitrary data is not so cacheable and cheap to host.

Here is an alternative: https://github.com/Rob--W/cors-anywhere

lucasew avatar Apr 05 '23 19:04 lucasew

Nice, thanks for sharing cors-anywhere.

We will add user auth and rate limiting on the CORs proxy to combat abuse.

davidkircos avatar Apr 05 '23 19:04 davidkircos

https://github.com/koenvo/pyodide-http

We can also document this in the meantime and maybe install it by default

davidkircos avatar Nov 21 '23 07:11 davidkircos

closed by #904 (reopen in future if we wanna add custom support for libraries, for now, requests works great!)

luke-quadratic avatar Dec 01 '23 15:12 luke-quadratic

We now load pyodide-http by default. Is there more work to do on this @luke-quadratic @davidkircos?

ddimaria avatar Feb 06 '24 22:02 ddimaria