Skip to content

[v3-2-test] UI: Block polling requests to endpoints that returned 403 Forbidden (#64333)#64492

Merged
vatsrahul1001 merged 2 commits intov3-2-testfrom
backport-3e3b44c-v3-2-test
Mar 30, 2026
Merged

[v3-2-test] UI: Block polling requests to endpoints that returned 403 Forbidden (#64333)#64492
vatsrahul1001 merged 2 commits intov3-2-testfrom
backport-3e3b44c-v3-2-test

Conversation

@github-actions
Copy link
Copy Markdown

  • UI: Block polling requests to endpoints that returned 403 Forbidden

Adds axios interceptors to track URLs that return 403 and abort
subsequent requests to those URLs. Permissions don't change mid-session,
so this prevents wasted polling traffic without requiring per-component
changes.

  • UI: Only block polling for permission-based 403s, not auth-related ones

Narrow the 403 URL tracking to responses with detail "Forbidden"
(missing permissions). Auth-related 403s like "Invalid JWT token"
are left alone to trigger the login redirect.


(cherry picked from commit 3e3b44c)

Co-authored-by: Pierre Jeambrun pierrejbrun@gmail.com
Co-authored-by: Rahul Vats 43964496+vatsrahul1001@users.noreply.github.com

… Forbidden (#64333)

* UI: Block polling requests to endpoints that returned 403 Forbidden

Adds axios interceptors to track URLs that return 403 and abort
subsequent requests to those URLs. Permissions don't change mid-session,
so this prevents wasted polling traffic without requiring per-component
changes.

* UI: Only block polling for permission-based 403s, not auth-related ones

Narrow the 403 URL tracking to responses with detail "Forbidden"
(missing permissions). Auth-related 403s like "Invalid JWT token"
are left alone to trigger the login redirect.

---------
(cherry picked from commit 3e3b44c)

Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Mar 30, 2026
@pierrejeambrun pierrejeambrun marked this pull request as ready for review March 30, 2026 16:26
@vatsrahul1001 vatsrahul1001 merged commit c42c74d into v3-2-test Mar 30, 2026
149 of 153 checks passed
@vatsrahul1001 vatsrahul1001 deleted the backport-3e3b44c-v3-2-test branch March 30, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants