OWASP Web Application Security

Content Security Policy (CSP) & Header Builder

Harden web applications against Cross-Site Scripting (XSS), clickjacking, and data exfiltration. Generate production-hardened headers with one click for Next.js, Nginx, Apache, and Vercel.

Quick Architecture Presets

Select an industry standard baseline, then fine-tune directives for your application stack.

🛡️ Content Security Policy (CSP) Directives

Complementary OWASP Security Headers

X-Frame-Options:
/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  poweredByHeader: false,
  async headers() {
    return [
      {
        source: '/(.*)',
        headers: [
          { key: 'Content-Security-Policy', value: 'default-src \'self\'; script-src \'self\' \'unsafe-inline\' https://cdn.jsdelivr.net; style-src \'self\' \'unsafe-inline\' https://fonts.googleapis.com; img-src \'self\' data: https:; connect-src \'self\' https:; font-src \'self\' https://fonts.gstatic.com data:; frame-ancestors \'none\'; object-src \'none\'; base-uri \'self\'; upgrade-insecure-requests' },
          { key: 'X-Content-Type-Options', value: 'nosniff' },
          { key: 'X-Frame-Options', value: 'DENY' },
          { key: 'Strict-Transport-Security', value: 'max-age=63072000; includeSubDomains; preload' },
          { key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
          { key: 'Permissions-Policy', value: 'camera=(), microphone=(), geolocation=()' }
        ],
      },
    ];
  },
};

module.exports = nextConfig;
Automated Perimeter Defense

Deploy Cloudflare One & Edge WAF

Enforce enterprise security headers, DDoS shielding, and Zero Trust access across your entire domain at Cloudflare edge with zero server maintenance.

Get Started with Cloudflare One →

Stay Informed on Web Application Vulnerabilities

Subscribe to the SecOps Pulse executive threat intelligence briefing for weekly zero-day disclosures, web exploitation advisories, and mitigation strategies.

Weekly Executive Briefing

Top critical & high-severity threats, every week.

No spam. Unsubscribe anytime. SecOpsPulse may include sponsored security tool recommendations.