Polski

Cybersecurity

Web application security

The OWASP Top 10 in practice: XSS, injection, CSRF, security headers and CSP.

Article

Security headers and CSP – nonces, strict-dynamic, report-only, HSTS, Permissions-Policy and CORS in Express, NestJS and CloudFront

We configure the pierogi store's security headers – a Content Security Policy with nonces and strict-dynamic rolled out in report-only mode first, HSTS with preload, protection against framing, Referrer-Policy, Permissions-Policy and CORS without the "star". Helmet in Express and NestJS, a CloudFront headers policy for a static SPA, real header dumps, an interactive CSP builder and testing tools.

Related articles

Around the topic

In this group: Cybersecurity