Add security headers (CSP, frame, referrer, permissions)
Los mantenedores suelen responder en 1 día
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
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
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Yormee-103/PayLoop
-
Add a CHANGELOG and release-notes conventionPosiblemente ocupada @Sharon-dev-create la tomó hoy. Abiertodifficulty: beginner documentation dx help wanted Stellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Yormee-103/PayLoop#169 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Glossary of Stellar and PayLoop terms, linked from the Help pagePosiblemente ocupada @Yemmy88 la tomó hoy. Abiertodifficulty: beginner documentation good first issue help wanted Stellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Yormee-103/PayLoop#168 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
difficulty: beginner dx good first issue help wanted web
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Yormee-103/PayLoop#158 ·
Los mantenedores suelen responder en 1 día
-
difficulty: beginner documentation good first issue help wanted security
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Yormee-103/PayLoop#145 ·
Los mantenedores suelen responder en 1 día
-
a11y difficulty: beginner good first issue help wanted web
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Yormee-103/PayLoop#144 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Yormee-103/PayLoop
Issues similares
-
[UI] Guard webApis against undefined window in SSR environmentsPosiblemente ocupada @madhavzanwar la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
headroomlabs-ai/headroom#4992 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
paperclipai/paperclip#22575 ·
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
lingdojo/kana-dojo#34502 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
bug frontend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
nikhilb2/simple_invoicing#935 ·