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

Đang mở
#23 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@nilhn9660 đang làm issue này rồi.

Từ ngày 21/11/2026.

  • #41 của @nilhn9660 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
nextjs, typescript
Lĩnh vực
frontend, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
54 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Yormee-103/PayLoop

Tất cả issue của Yormee-103/PayLoop

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.