From 8901169c07f30d971074b919b8a07b39e61a9eeb Mon Sep 17 00:00:00 2001 From: gregfromstl Date: Fri, 27 Jun 2025 11:13:53 -0700 Subject: [PATCH] feat: adds location to platform headers --- packages/thirdweb/src/utils/fetch.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/thirdweb/src/utils/fetch.ts b/packages/thirdweb/src/utils/fetch.ts index 61005c73c4c..e56a6c4f396 100644 --- a/packages/thirdweb/src/utils/fetch.ts +++ b/packages/thirdweb/src/utils/fetch.ts @@ -228,6 +228,10 @@ export function getPlatformHeaders() { ...(bundleId ? { "x-bundle-id": bundleId } : {}), }); + if (typeof window !== "undefined") { + previousPlatform.push(["x-sdk-location", window.location.href]); + } + return previousPlatform; }