quadratichq / quadratic

Quadratic | Spreadsheet with Python, SQL, and AI
https://QuadraticHQ.com
Other
3.03k stars 154 forks source link

feat: request proxying for JS & fix auth header override for both JS and Python requests #1899

Open jimniels opened 1 month ago

jimniels commented 1 month ago

Python will proxy requests so you don't hit CORS issues, but JavaScript doesn't. We should add that.

Additionally, at the same time as adding the JS proxy we should fix both proxies to not override authorization headers. See Slack convo for recommended approach to fix.

image

luke-quadratic commented 1 week ago

Over last 7 days have found 2 more APIs that are failing in Python because of proxy auth headers (one from user who ran into issue). User report: https://github.com/quadratichq/quadratic/issues/2040

Temp fix is for folks to use JavaScript instead, but we need to fix.