Skip to content

Content Security Policy #259

@RUKAYAT-CODER

Description

@RUKAYAT-CODER

Description

Overview
Missing CSP directives allowing potential XSS attacks.

Background
Missing X-Frame-Options, X-Content-Type-Options headers.

Specifications

  • Configure strict CSP policy with nonce/hash support
  • Add reporting endpoints
  • Set up CSP violation monitoring

Tasks:

  • Define CSP for app and admin
  • Implement nonce generation
  • Add CSP reporting

Impacted Files:

  • src/middleware/csp.ts
  • next.config.js (or equivalent)

Labels: priority-high, security, frontend

Acceptance Criteria
CSP headers prevent inline scripts and external resources

🙆Contribution Guidelines:
Assignment required before PR submission
Timeframe: 48-72 hours
PR description must include: Close #issue no
Star the repo⭐

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions