Skip to content

The open alternative to Salesforce, designed for AI.

fix(front): pass auth headers to GraphiQL fetcher for introspection (#21821)

Etienne99f4084a0591
diff --git a/packages/twenty-front/src/modules/settings/playground/components/GraphQLPlayground.tsx b/packages/twenty-front/src/modules/settings/playground/components/GraphQLPlayground.tsx
index a599017c9ae..06bbca026fb 100644
--- a/packages/twenty-front/src/modules/settings/playground/components/GraphQLPlayground.tsx
+++ b/packages/twenty-front/src/modules/settings/playground/components/GraphQLPlayground.tsx
@@ -55,6 +55,9 @@ export const GraphQLPlayground = ({
const fetcher = createGraphiQLFetcher({
url: baseUrl,
+ headers: {
+ Authorization: `Bearer ${playgroundApiKey.token}`,
+ },
});
return (