quadratic
quadratic copied to clipboard
feat: Quadratic Hosted CORS proxy & improved Python API requests overall
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?
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
Nice, thanks for sharing cors-anywhere.
We will add user auth and rate limiting on the CORs proxy to combat abuse.
https://github.com/koenvo/pyodide-http
We can also document this in the meantime and maybe install it by default
closed by #904 (reopen in future if we wanna add custom support for libraries, for now, requests works great!)
We now load pyodide-http by default. Is there more work to do on this @luke-quadratic @davidkircos?