WIP: fix: resolve mixed content blocking for HTTP RPC endpoints#228
Draft
HeesungB wants to merge 3 commits into
Draft
WIP: fix: resolve mixed content blocking for HTTP RPC endpoints#228HeesungB wants to merge 3 commits into
HeesungB wants to merge 3 commits into
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
http://23.20.153.250등)로 XHR 요청 시 브라우저 Mixed Content 정책에 의해 차단되는 문제 해결/api/rpc-proxy) 추가: 서버 측에서 HTTP 엔드포인트로 요청을 포워딩makeRPCUrl()에서http://URL을/api/rpc-proxy?target=...로 라우팅하도록 수정Changes
src/pages/api/rpc-proxy.ts(신규): HTTP 엔드포인트 프록시 API routesrc/common/clients/node-client/utility.ts:makeRPCUrl()HTTP 분기에서 proxy URL 반환Test plan
?type=custom&rpcUrl=http://<ip>쿼리로 접속 시 네트워크 탭에서/api/rpc-proxy?target=...로 요청이 라우팅되는지 확인Note
🤖 Generated with Claude Code