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; }