Skip to content

feat(core): whitelist styles with useHeadSafe() - #491

Merged
harlan-zw merged 2 commits into
mainfrom
feat/whitelist-styles
Feb 14, 2025
Merged

harlan-zw merged 2 commits into
mainfrom
feat/whitelist-styles

Conversation

@harlan-zw

@harlan-zw harlan-zw commented Feb 13, 2025 •

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Allows the use of styles with useHeadSafe() as modern browsers won't allow XSS injection in style tags.

While styles are permitted it's important to note that clickjacking is still possible. You should ensure that your styles are safe to use.

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Analysis

File Size Gzipped Size Size Diff Gzipped Size Diff
Client 12.5 kB (12834 B) 5 kB (5157 B) 0.00% (0 B) 0.00% ( 0 B)
Server 9.9 kB (10111 B) 4 kB (4072 B) 0.00% (0 B) 0.00% ( 0 B)

@harlan-zw
harlan-zw merged commit e4b1ff6 into main Feb 14, 2025
@harlan-zw harlan-zw mentioned this pull request Apr 4, 2026
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.

1 participant