🍋 Privacy & Security

CSP Header Generator

Build Content Security Policy headers

Free Chỉ trên trình duyệt No sign-up
chars words sentences lines

Chỉ thị CSP

Type or paste something into the Input box to enable this button.

Kết quả

Kết quả

Giới thiệu CSP Header Generator

Build Content-Security-Policy headers with an interactive form. Generates HTTP header, meta tag, Nginx, and Apache configurations.

Cách hoạt động

Combines your directive values into a valid CSP header string. Outputs ready-to-use configurations for HTTP headers, HTML meta tags, Nginx add_header, and Apache Header directives.

Từng bước

  1. 1 ['Set source values for each CSP directive', "Use 'self' for same-origin, specific domains, or 'none' to block", 'Click Generate to build the CSP header', 'Copy the configuration for your server type', 'Test the policy with browser DevTools']

Mẹo

  • [
  • '
  • S
  • t
  • a
  • r
  • t
  • w
  • i
  • t
  • h
  • a
  • r
  • e
  • s
  • t
  • r
  • i
  • c
  • t
  • i
  • v
  • e
  • p
  • o
  • l
  • i
  • c
  • y
  • a
  • n
  • d
  • l
  • o
  • o
  • s
  • e
  • n
  • a
  • s
  • n
  • e
  • e
  • d
  • e
  • d
  • '
  • ,
  • "
  • U
  • s
  • e
  • '
  • s
  • e
  • l
  • f
  • '
  • a
  • s
  • a
  • b
  • a
  • s
  • e
  • l
  • i
  • n
  • e
  • f
  • o
  • r
  • m
  • o
  • s
  • t
  • d
  • i
  • r
  • e
  • c
  • t
  • i
  • v
  • e
  • s
  • "
  • ,
  • '
  • A
  • d
  • d
  • C
  • D
  • N
  • d
  • o
  • m
  • a
  • i
  • n
  • s
  • e
  • x
  • p
  • l
  • i
  • c
  • i
  • t
  • l
  • y
  • (
  • e
  • .
  • g
  • .
  • ,
  • c
  • d
  • n
  • .
  • j
  • s
  • d
  • e
  • l
  • i
  • v
  • r
  • .
  • n
  • e
  • t
  • )
  • '
  • ,
  • '
  • T
  • e
  • s
  • t
  • w
  • i
  • t
  • h
  • C
  • o
  • n
  • t
  • e
  • n
  • t
  • -
  • S
  • e
  • c
  • u
  • r
  • i
  • t
  • y
  • -
  • P
  • o
  • l
  • i
  • c
  • y
  • -
  • R
  • e
  • p
  • o
  • r
  • t
  • -
  • O
  • n
  • l
  • y
  • f
  • i
  • r
  • s
  • t
  • '
  • ]

Câu hỏi thường gặp