-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Link to minimal reproducible example
https://app.sablier.com — connect any wallet and observe the browser console.
This isn't app-specific. The CORS failure originates from rpc.walletconnect.org not returning Access-Control-Allow-Origin headers on the /v1/identity/ endpoint. Any AppKit integration on a production domain can reproduce it.
Steps to Reproduce
- Deploy any AppKit integration to a production domain (e.g.
https://app.sablier.com) - Connect a wallet
- Open browser DevTools → Console
- Observe CORS errors for
rpc.walletconnect.org/v1/identity/
The request is triggered automatically by AppKit's syncIdentity → fetchIdentity → BlockchainApiController.get({ path: '/v1/identity/{address}' }) flow.
Summary
The /v1/identity/{address} endpoint on rpc.walletconnect.org intermittently fails to return CORS headers, causing browsers to block the response:
Access to fetch at 'https://rpc.walletconnect.org/v1/identity/?st=appkit&sv=react-wagmi-1.8.18&projectId=...'
from origin 'https://app.sablier.com' has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
This is similar to #4882 (CORS on rpc.walletconnect.org for "All Wallets"), which was fixed by removing disallowed headers. The /v1/identity/ endpoint still exhibits the same CORS behavior.
The errors are browser-level network errors — they cannot be caught or suppressed by client-side JavaScript (try/catch, window.onerror, service workers). The catch block in syncIdentity handles the failure gracefully (falls back to null avatar/name), so there's no functional impact, but it creates noisy console errors in production that can't be silenced from the client side.
Expected: The /v1/identity/ endpoint returns proper Access-Control-Allow-Origin headers for all origins, consistent with other rpc.walletconnect.org endpoints.
List of related npm package versions
@reown/appkit: 1.8.18@reown/appkit-adapter-wagmi: 1.8.18wagmi: 2.19.5viem: 2.45.3
Node.js Version
v25.6.0
Package Manager
bun@1.3.9