Skip to content

Conversation

@HaoNan2k
Copy link

Summary

  • Add rel="noopener noreferrer" to links opened in a new tab (target="_blank").
  • Use noopener,noreferrer features when opening a new tab via window.open.

Why

This prevents reverse tabnabbing via window.opener and aligns external-link handling with common security best practices.

Test plan

  • Not applicable (static change).

- Add rel="noopener noreferrer" to links opened in new tabs.
- Use noopener/noreferrer features for window.open.
- Run ultracite via pnpm exec and address lint/format findings.
Restore upstream lint/format scripts and revert incidental lint-driven edits.
@vercel
Copy link
Contributor

vercel bot commented Dec 18, 2025

@HaoNan2k is attempting to deploy a commit to the v0-evals-vtest314 Team on Vercel.

A member of the Team first needs to authorize it.

@HaoNan2k HaoNan2k changed the title Fix: use noopener noreferrer for target=blank links Fix: use noopener noreferrer for target="_blank" links Dec 18, 2025
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.

2 participants