syncfusion avatar

Syncfusion Blazor Security

If you're deploying Syncfusion Blazor components and need to lock down Content Security Policy without breaking things, this walks you through the exact directives required. It covers the self-hosted Static Web Assets scenario and CDN delivery, explains why Syncfusion needs unsafe-inline for styles (dynamic sizing) and specific font-src rules (base64 icons), and tells you where to drop the meta tag in .NET 8+ projects. The table format makes it easy to copy-paste and adjust. Honest take: CSP with third-party component libraries is always fiddly, and having the directives spelled out with reasons saves a lot of trial and error in the browser console.

skills.sh installs
382
GitHub stars
4
last updated
Aug 21, 2026

Install

$ npx -y skills add syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-security --agent claude-code

Installs into .claude/skills of the current project.

Files

Syncfusion Blazor Security

Content Security Policy (CSP) configuration for Syncfusion Blazor components in browser-hosted applications (.NET 8, 9, 10).

When to Use

Use this skill when you need to:

  • Add a CSP <meta> tag to App.razor or index.html for Syncfusion components
  • Configure CSP for self-hosted (Static Web Assets) script and style delivery
  • Configure CSP for CDN-hosted Syncfusion scripts and styles
  • Understand which CSP directives Syncfusion components require and why

Quick Reference

Required CSP Directives at a Glance

DirectiveValueReason
font-src'self' data:Base64-encoded icon fonts
style-src'self' 'unsafe-inline'Inline styles for sizing/positioning
script-src'self'Dynamic code evaluation (animations, etc.)
connect-src'self' https: wss:WebSocket and HTTPS connections
img-srcdata: https:Inline images and remote assets
object-src'none'Block plugin content

Sponsors

Details

Repository
github.com/syncfusion/blazor-ui-components-skills
Categories
Frontend Development, Backend & APIs, Security, .NET & C#
First seen
Jun 3, 2026

More from syncfusion/blazor-ui-components-skills

All 30
1syncfusion avatarsyncfusion-blazor-treegridsyncfusion/blazor-ui-components-skillsImplements the Syncfusion Blazor TreeGrid (SfTreeGrid) for hierarchical or self‑referential data with expandable nodes and nested row structures. Use this skill382skills.sh installs
2pedronauck avatartanstackpedronauck/skillsTanStack Query, Router, and Form patterns for React. Use when writing useQuery/queryOptions, mutations, caching, file-based routes, search params, loaders, or T380skills.sh installs
3secondsky avatarmaz-uisecondsky/claude-skillsMaz-UI v4 - Modern Vue & Nuxt component library with 50+ standalone components, composables, directives, theming, i18n, and SSR support. Use when building Vue/N380skills.sh installs
4galaxy-dawn avatarweb-design-reviewergalaxy-dawn/claude-scholarThis skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review website design378skills.sh installs
5mrgoonie avatarweb-frameworksmrgoonie/claudekit-skillsBuild modern full-stack web applications with Next.js (App Router, Server Components, RSC, PPR, SSR, SSG, ISR), Turborepo (monorepo management, task pipelines, 377skills.sh installs
6syncfusion avatarsyncfusion-blazor-blockeditorsyncfusion/blazor-ui-components-skillsImplement Syncfusion Blazor Block Editor for modular, block-based rich content creation. ALWAYS use when building structured document editors with customizable 376skills.sh installs