Skip to content

[bug] CORS error on /v1/identity/ endpoint (rpc.walletconnect.org) #5555

@PaulRBerg

Description

@PaulRBerg

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

  1. Deploy any AppKit integration to a production domain (e.g. https://app.sablier.com)
  2. Connect a wallet
  3. Open browser DevTools → Console
  4. Observe CORS errors for rpc.walletconnect.org/v1/identity/

The request is triggered automatically by AppKit's syncIdentityfetchIdentityBlockchainApiController.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.18
  • wagmi: 2.19.5
  • viem: 2.45.3

Node.js Version

v25.6.0

Package Manager

bun@1.3.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions