Repository navigation
fix(ui): resolve login redirect loop when reverse proxy adds HttpOnly to cookies #23532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
krrish-berri-2
merged 32 commits into
BerriAI:litellm_oss_staging_04_04_2026
from
jaxhend:litellm_login_httponly_cookie_fix
Apr 6, 2026
Merged
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
6eb78e4
fix(ui): resolve login redirect loop when reverse proxy adds HttpOnly…
jaxhend a8864ea
fix: address Greptile review feedback
jaxhend 2c5caac
fix: address second round of Greptile review feedback
jaxhend 04f835e
Update ui/litellm-dashboard/src/utils/cookieUtils.ts
jaxhend 22409da
Update ui/litellm-dashboard/src/utils/cookieUtils.ts
jaxhend 461cf00
fix(ui): use sessionStorage instead of cookie for login token storage
jaxhend 523d1c3
fix(ui): use shared getCookie in page.tsx and user_dashboard.tsx
jaxhend acdc614
fix(ui): scope deleteCookie sessionStorage cleanup to token key only
jaxhend a607754
Update ui/litellm-dashboard/src/utils/cookieUtils.ts
jaxhend 20ad73f
Apply suggestion from @greptile-apps[bot]
jaxhend 06260df
style: remove stray double blank line in user_dashboard.tsx
jaxhend 35bd69e
fix(ui): guard storeLoginToken against empty/whitespace-only tokens
jaxhend 01f8844
fix(ui): preserve sessionStorage token across beforeunload clear
jaxhend a093760
fix(ui): set JS-accessible cookie at /ui path as HttpOnly workaround
jaxhend bd878e7
fix(ui): use dynamic cookie path based on server_root_path
jaxhend 40eaab5
refactor(ui): remove circular dependency in cookieUtils.ts
jaxhend 11974ca
fix(ui): harden getUiCookiePath regex and add missing tests
jaxhend eb1a83e
Merge remote-tracking branch 'origin/main' into litellm_login_httponl…
jaxhend c16fdce
style: fix Black formatting in audit_logs.py
jaxhend 61f5b68
Merge branch 'main' of https://github.com/BerriAI/litellm into litell…
jaxhend ce8bf55
Merge branch 'main' of https://github.com/BerriAI/litellm into litell…
jaxhend 2905d47
fix CI: formatting, test params, remove token from login JSON
jaxhend b2c3334
fix: reformat with Black 23.x to match CI
jaxhend 086c416
fix: keep token in login JSON body for UI storeLoginToken flow
jaxhend 866405f
fix: use storeLoginToken in exchangeLoginCode, add credentials include
jaxhend 0684a1e
revert: remove unrelated changes from HttpOnly cookie fix branch
jaxhend eff9e70
Revert "revert: remove unrelated changes from HttpOnly cookie fix bra…
jaxhend 940789f
Revert "fix: use storeLoginToken in exchangeLoginCode, add credential…
jaxhend dcbe924
Revert "fix: keep token in login JSON body for UI storeLoginToken flow"
jaxhend ecd8cc5
Revert "fix: reformat with Black 23.x to match CI"
jaxhend 7f14d41
Revert "fix CI: formatting, test params, remove token from login JSON"
jaxhend 3298858
Merge branch 'BerriAI:main' into litellm_login_httponly_cookie_fix
jaxhend File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.