From 1d89fe41fc33d11b376345fb14afdbbcd083aae5 Mon Sep 17 00:00:00 2001 From: 0xMasayoshi <0xMasayoshi@protonmail.com> Date: Tue, 29 Oct 2024 01:31:41 +0900 Subject: [PATCH] fix: include drpc Authorization header in onFetchRequest --- apps/web/src/lib/wagmi/config/production.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/lib/wagmi/config/production.ts b/apps/web/src/lib/wagmi/config/production.ts index 499d8a7623..0c3e790bd7 100644 --- a/apps/web/src/lib/wagmi/config/production.ts +++ b/apps/web/src/lib/wagmi/config/production.ts @@ -72,6 +72,7 @@ export const createProductionConfig = () => { fetchOptions, onFetchRequest(_req) { if (typeof window !== 'undefined' && transportUrl.includes('drpc')) { + drpcJwt && _req.headers.set('Authorization', drpcJwt) try { _req.json().then((json) => { gtagEvent('drpc-request', {