Add security headers (CSP, frame, referrer, permissions)

Abierto
#23 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@nilhn9660 ya está trabajando en esto.

Desde el 21/11/2026.

  • #41 de @nilhn9660 — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
nextjs, typescript

Línea de trabajo

Start in web/next.config.mjs, which currently sets no headers, and look at how Next.js's headers() function is structured. Pull request #41 is already open against this issue, so read its diff and discussion before writing anything. Done means every route returns the listed headers, Freighter connect, payment and faucet still work, and the CSP produces no console violations in Report-Only mode.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

difficulty: intermediate help wanted security Stellar Wave web

Difficulty: Intermediate

Description

web/next.config.mjs sets no headers. For an app that asks users to sign transactions, clickjacking and injected-script protection matter.

Implementation suggestions

Add headers() with Content-Security-Policy (allow Soroban RPC, Horizon, Sentry, Vercel Analytics), X-Frame-Options/frame-ancestors, Referrer-Policy, X-Content-Type-Options and Permissions-Policy. Roll out CSP in Report-Only first. Document the allowed origins.

Acceptance criteria

  • All routes return the headers.
  • Connecting Freighter, creating, paying and the faucet still work.
  • No CSP violations in the console in a normal session.
  • A securityheaders.com-style check scores A or better.

Dependencies / related

If #33 (live anchor) or #34 (more wallets) land, their origins must be added to the CSP.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
4
Merge medio
54 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Yormee-103/PayLoop

Todos los issues de Yormee-103/PayLoop

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.