diff --git a/starters/graphql-starter/lib/drupal.ts b/starters/graphql-starter/lib/drupal.ts index 0fe2765c..5f3baaaf 100644 --- a/starters/graphql-starter/lib/drupal.ts +++ b/starters/graphql-starter/lib/drupal.ts @@ -30,6 +30,10 @@ export async function query(payload: QueryPayload) { method: "POST", body: JSON.stringify(payload), withAuth: true, // Make authenticated requests using OAuth. + headers: { + "Content-Type": "application/json", + Accept: "application/json", + }, }) if (!response?.ok) {