Skip to main content

syncfusion-aspnetcore-security

**CONTENT SECURITY POLICY (CSP) GUIDE** — Assist with configuring Syncfusion ASP.NET Core EJ2 components to work with strict Content Security Policy (CSP) headers. Use when: implementing CSP headers, generating and applying nonces to inline scripts/styles, configuring external font allowlists, or troubleshooting CSP violations.

소스 정보

저장소
syncfusion/aspnetcore-ui-components-skills
최근 소스 활동
2026년 7월 6일 07:20
감지된 SKILL.md 언어
영어
스타
0
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
syncfusion-aspnetcore-security
description
**CONTENT SECURITY POLICY (CSP) GUIDE** — Assist with configuring Syncfusion ASP.NET Core EJ2 components to work with strict Content Security Policy (CSP) headers. Use when: implementing CSP headers, generating and applying nonces to inline scripts/styles, configuring external font allowlists, or troubleshooting CSP violations.
metadata
{"author":"Syncfusion Inc","version":"34.1.29"}
# Content Security Policy (CSP) — Syncfusion ASP.NET Core (Security) Use this skill for high-level, Syncfusion-specific CSP guidance and references. Detailed code snippets and implementation examples live in the concern's `references` files. ## When to Use - Implementing CSP headers for Syncfusion EJ2 controls - Running in strict CSP mode where inline scripts/styles are restricted - Adding nonces to inline scripts/styles for Syncfusion initialization - Allowlisting CDN resources or external fonts required by Syncfusion themes ## Quick Checklist - Generate a cryptographically secure nonce per request - Add the nonce to the CSP header and to all Syncfusion script/style tags - Allow required CDN origins and font providers in CSP directives - Avoid `unsafe-inline`/`unsafe-eval` unless absolutely necessary - Verify behavior in browser DevTools and address CSP violations ## Generic Guidelines (Summary) - Generate nonces early in the pipeline and store them in `HttpContext` for views - Use minimal, explicit CSP directives (prefer `'self'`, explicit hostnames, and `'nonce-<value>'`) - Prefer data binding over inline templates to avoid `unsafe-eval` requirements - Document your CSP policy and the reasons for any relaxations ## References - Main implementation and examples: [references/csp-guide.md](references/csp-guide.md)
GitHub에서 보기