From a01dfb223c08410f4228aca7e22d0d7fa9674983 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 13 Dec 2022 21:15:50 -0600 Subject: make the key header x-key instead --- src/lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/api.ts') diff --git a/src/lib/api.ts b/src/lib/api.ts index 552607c..a72c1e8 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -10,7 +10,7 @@ export async function fetchApi(path: string, fetch: (info: RequestInfo, init?: R init = init || {} if (!init.headers) init.headers = {} - init.headers['key'] = SKYBLOCK_STATS_API_KEY + init.headers['x-key'] = SKYBLOCK_STATS_API_KEY } const response = await fetch(API_URL + path, init) -- cgit