Skip to content

Commit 5bfad6b

Browse files
authored
fix(self-hosted): GraphiQL invalided authentication credentials (supabase#29972)
1 parent 061dce4 commit 5bfad6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/studio/pages/project/[ref]/api/graphiql.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ const GraphiQLPage: NextPageWithLayout = () => {
7171
...opts,
7272
headers: {
7373
...opts?.headers,
74-
Authorization: `Bearer ${accessToken}`,
74+
...(accessToken && {
75+
Authorization: `Bearer ${accessToken}`,
76+
}),
7577
'x-graphql-authorization':
7678
opts?.headers?.['Authorization'] ??
7779
opts?.headers?.['authorization'] ??

0 commit comments

Comments
 (0)