support 429 "Too many requests" API error (#1004)
* get client key on 429 error * set key to cookie and pass it in query params * move csrf-token header to useApiFetch * pin host for preview * actual layout * support new changes in API * proxy headers from API * add header to request * remove next.js proxy flag * fix ts * refactor * add tests
Showing
icons/error-pages/429.svg
0 → 100644
lib/api/isBodyAllowed.ts
0 → 100644
22.6 KB
20.5 KB