Skip to content

fix: resolve #358 - 管理端Token存入localStorage,XSS风险极高#376

Closed
awsl233777 wants to merge 5 commits intomainfrom
fix/issue-358
Closed

fix: resolve #358 - 管理端Token存入localStorage,XSS风险极高#376
awsl233777 wants to merge 5 commits intomainfrom
fix/issue-358

Conversation

@awsl233777
Copy link
Collaborator

Closes #358

@coderabbitai
Copy link

coderabbitai bot commented Mar 9, 2026

Warning

Rate limit exceeded

@dreamhunter2333 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 27 minutes and 51 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 77838164-2c2a-4d56-9765-8ef5b2f495d3

📥 Commits

Reviewing files that changed from the base of the PR and between 6cd6fd6 and 6b6ab64.

📒 Files selected for processing (16)
  • internal/handler/auth.go
  • internal/handler/auth_cookie_test.go
  • internal/handler/auth_handler.go
  • internal/handler/auth_passkey.go
  • internal/handler/auth_passkey_test.go
  • tests/e2e/auth_test.go
  • tests/e2e/rbac_test.go
  • tests/e2e/setup_test.go
  • web/src/components/auth/admin-route.tsx
  • web/src/components/layout/app-sidebar/nav-user.tsx
  • web/src/hooks/use-streaming.ts
  • web/src/lib/auth-context.tsx
  • web/src/lib/transport/http-transport.ts
  • web/src/lib/transport/interface.ts
  • web/src/lib/transport/types.ts
  • web/src/pages/login.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/issue-358

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@awsl233777
Copy link
Collaborator Author

Automated Test Report

PR: #376 | Branch: fix/issue-358 | Issue: #358

Suite Total Passed Failed Skipped Status
E2E 0 0 0 0 NOT RUN
Unit 0 0 0 0 NOT RUN

Overall: TESTS NOT RUN

Worktree setup was blocked by the sandbox, so no Go tests were executed.

Failure while preparing the branch:

git fetch origin fix/issue-358
error: cannot open '.git/FETCH_HEAD': Operation not permitted

Because origin/fix/issue-358 was not available locally after that failure, test-376 could not be created safely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

管理端Token存入localStorage,XSS风险极高

2 participants