Skip to content

WIP: fix: resolve mixed content blocking for HTTP RPC endpoints#228

Draft
HeesungB wants to merge 3 commits into
mainfrom
feature/GNS-372
Draft

WIP: fix: resolve mixed content blocking for HTTP RPC endpoints#228
HeesungB wants to merge 3 commits into
mainfrom
feature/GNS-372

Conversation

@HeesungB

Copy link
Copy Markdown
Contributor

Summary

  • HTTPS 페이지에서 HTTP RPC 엔드포인트(http://23.20.153.250 등)로 XHR 요청 시 브라우저 Mixed Content 정책에 의해 차단되는 문제 해결
  • Next.js API proxy route(/api/rpc-proxy) 추가: 서버 측에서 HTTP 엔드포인트로 요청을 포워딩
  • makeRPCUrl()에서 http:// URL을 /api/rpc-proxy?target=...로 라우팅하도록 수정

Changes

  • src/pages/api/rpc-proxy.ts (신규): HTTP 엔드포인트 프록시 API route
  • src/common/clients/node-client/utility.ts: makeRPCUrl() HTTP 분기에서 proxy URL 반환

Test plan

  • ?type=custom&rpcUrl=http://<ip> 쿼리로 접속 시 네트워크 탭에서 /api/rpc-proxy?target=...로 요청이 라우팅되는지 확인
  • Mixed content 차단 에러 없이 RPC 응답을 정상 수신하는지 확인
  • 기존 HTTPS 엔드포인트는 프록시 없이 직접 요청하는지 확인

Note

WebSocket(ws://) 프록시는 미포함 - 현재 차단된 요청은 XHR(HTTP)만 해당

🤖 Generated with Claude Code

HeesungB and others added 3 commits May 11, 2026 14:06
Add NETWORK3 env mapping so a third chain can be supplied via .env, and
introduce NEXT_PUBLIC_DEFAULT_CHAIN_ID and NEXT_PUBLIC_NETWORK_ORDER for
controlling the initial selection and selector ordering independently
of the NETWORK1/2/3 positions in .env.

- network.config.ts: add applyNetworkOrder and getDefaultChain helpers;
  getNetworkConfig now applies the order
- network-provider.tsx: pick default via getDefaultChain (falls back to
  chains[0]); URL ?chainId= still wins
- .env.example: add NETWORK3 block and the two override variables
- network.config.test.ts: cover NETWORK3 mapping, applyNetworkOrder, and
  getDefaultChain (15 cases total)

Refs: GNS-372

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Add min-width/min-height and flex-shrink: 0 to .svg-icon so icons no
  longer get compressed by neighboring flex content
- Add min-width: 0 and overflow: hidden to .info-wrapper so its child
  Text can actually shrink and trigger ellipsis
- Apply Text's existing .ellipsis class to the RPC URL row

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented May 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gnoscan Ready Ready Preview, Comment May 14, 2026 0:03am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant