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

オープン
#23 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@nilhn9660 がすでに取り組んでいます。

2026年11月21日 から。

  • #41 @nilhn9660 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
nextjs, typescript
領域
frontend, security

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
0
フォーク
4
平均マージ
54分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Yormee-103/PayLoop のほかの issue

Yormee-103/PayLoop の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。