We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6d6ce commit d21433cCopy full SHA for d21433c
lib/drupal.ts
@@ -30,6 +30,10 @@ export async function query<DataType>(payload: QueryPayload) {
30
method: "POST",
31
body: JSON.stringify(payload),
32
withAuth: true, // Make authenticated requests using OAuth.
33
+ headers: {
34
+ "Content-Type": "application/json",
35
+ Accept: "application/json",
36
+ },
37
})
38
39
if (!response?.ok) {
0 commit comments