diff --git a/src/route/blizzard/api.ts b/src/route/blizzard/api.ts index 01567ca..28136aa 100644 --- a/src/route/blizzard/api.ts +++ b/src/route/blizzard/api.ts @@ -242,13 +242,16 @@ async function fetchApi( return undefined; } const accessToken = await fetchAccessToken(region); - const url = makeUrl(region, path, { - access_token: accessToken, - ...query, - }); + const url = makeUrl(region, path, query); try { - return (await axios.get(url))?.data; + return ( + await axios.get(url, { + headers: { + Authorization: `Bearer ${accessToken}`, + }, + }) + )?.data; } catch (err: unknown) { if ( err instanceof AxiosError &&