GitNexus/gitnexus/src
Shunsuke Hayashi d07a69c3b1 fix(server): allow private/LAN network origins in CORS (#390)
Allow RFC 1918 private network ranges in the CORS origin allowlist so
users running GitNexus on their home or office LAN can access the web UI
from another device on the same network.

Permitted private ranges:
  10.0.0.0/8      (10.x.x.x)
  172.16.0.0/12   (172.16.x.x – 172.31.x.x)
  192.168.0.0/16  (192.168.x.x)

The origin check is extracted into an exported isAllowedOrigin() helper
so it can be unit-tested in isolation.  A new test file covers:
  - No origin (curl / server-to-server)
  - localhost and 127.0.0.1 variants
  - All three RFC 1918 ranges including boundary values
  - The deployed gitnexus.vercel.app site
  - Public / untrusted origins that must be rejected

The server bind address (127.0.0.1 by default) is unchanged; this PR
only affects which cross-origin browser requests are accepted.

Closes #390
2026-03-22 18:28:21 +09:00
..
cli Merge branch 'main' into feat/codex-support 2026-03-19 10:24:45 +01:00
config fix: address PR #409 review findings (P0-P3) and simplify import resolution API 2026-03-21 14:15:15 +00:00
core fix: address PR #409 review findings (P0-P3) and simplify import resolution API 2026-03-21 14:15:15 +00:00
lib feat: merge gitnexus-mcp into gitnexus package - unified CLI+MCP 2026-02-04 01:12:41 +05:30
mcp fix: address review feedback — watchdog, TOCTOU race, null guard, platform guard 2026-03-20 16:52:33 +09:00
server fix(server): allow private/LAN network origins in CORS (#390) 2026-03-22 18:28:21 +09:00
storage refactor: migrate from KuzuDB to LadybugDB v0.15 (#275) 2026-03-15 15:53:01 +00:00
types refactor: migrate from KuzuDB to LadybugDB v0.15 (#275) 2026-03-15 15:53:01 +00:00