Skip to main content

umbraco-security-headers

Adds security headers to an Umbraco 17.3+ site: a Content Security Policy using Umbraco's per-request nonce, with separate backoffice and website policies, plus X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy. Two approaches: custom middleware (default) or NWebsec. Use this whenever the user asks to add a CSP or security headers to Umbraco, fix the Health Check security group (CSP, click-jacking, MIME sniffing, X-XSS-Protection, excessive headers), fix a blank backoffice or "Refused to execute inline script" errors after adding a CSP, put a nonce on an inline script (asp-csp-nonce), weigh 'strict-dynamic', make a CSP work with output caching, roll out report-only, or act on pen-test findings about headers. SKIP: non-Umbraco projects, Umbraco below 17.3, and other security work (HTTPS/HSTS, CORS, login, authorization).

Quellinformationen

umbraco

Repository umbraco/Umbraco-CMS-Implementation-Skills

Letzte Quellaktivität
21. Oktober 2026 um 08:31
Erkannte Sprache von SKILL.md
Englisch
Sterne
8
Forks
9

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

Datei-Explorer
25 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
nameumbraco-security-headers
descriptionAdds security headers to an Umbraco 17.3+ site: a Content Security Policy using Umbraco's per-request nonce, with separate backoffice and website policies, plus X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy. Two approaches: custom middleware (default) or NWebsec. Use this whenever the user asks to add a CSP or security headers to Umbraco, fix the Health Check security group (CSP, click-jacking, MIME sniffing, X-XSS-Protection, excessive headers), fix a blank backoffice or "Refused to execute inline script" errors after adding a CSP, put a nonce on an inline script (asp-csp-nonce), weigh 'strict-dynamic', make a CSP work with output caching, roll out report-only, or act on pen-test findings about headers. SKIP: non-Umbraco projects, Umbraco below 17.3, and other security work (HTTPS/HSTS, CORS, login, authorization).