Skip to content

[SECURITY] Add Content Security Policy headers #735

@adamghaleb

Description

@adamghaleb

Description

No Content Security Policy (CSP) headers are configured in Next.js config. The app loads external scripts and images without CSP restrictions.

External Resources Currently Loaded

Risk

  • External script injection attacks
  • Style-based attacks
  • Data exfiltration

Fix

Add CSP headers via `next.config.ts` headers or middleware with appropriate directives for `default-src`, `script-src`, `img-src`, etc.

Files

  • `apps/web/next.config.ts`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions