DevToolBox무료
블로그

CSP 헤더 생성기

Content-Security-Policy 헤더를 인터랙티브하게 구축합니다.

Presets
Directives
Keywords
Schemes
Custom Domains
Additional Directives
upgrade-insecure-requests
Instructs browsers to upgrade HTTP requests to HTTPS
block-all-mixed-content
Prevents loading any mixed content (HTTP on HTTPS pages)
# Configure directives above to generate your CSP header...

What is a CSP Generator?

A Content-Security-Policy generator helps you build CSP headers that protect your website from XSS, data injection, and other code injection attacks.

𝕏 Twitterin LinkedIn

이 도구 평가

4.8 / 5 · 75 개 평가

최신 소식 받기

주간 개발 팁과 새 도구 알림을 받으세요.

스팸 없음. 언제든 구독 해지 가능.

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Select a preset or start from scratch
  2. Configure each directive
  3. Add trusted sources
  4. Copy the CSP header

Use Cases

  • Preventing XSS attacks
  • Meeting security compliance
  • Configuring Content-Security-Policy
  • Testing CSP rules

FAQ

What directives are supported?
All standard CSP directives including default-src, script-src, style-src, img-src, and more.
Can I test my CSP?
Use report-uri directive for monitoring. This tool generates the header you need.