There was an error while loading. Please reload this page.
1 parent 061dce4 commit 5bfad6bCopy full SHA for 5bfad6b
apps/studio/pages/project/[ref]/api/graphiql.tsx
@@ -71,7 +71,9 @@ const GraphiQLPage: NextPageWithLayout = () => {
71
...opts,
72
headers: {
73
...opts?.headers,
74
- Authorization: `Bearer ${accessToken}`,
+ ...(accessToken && {
75
+ Authorization: `Bearer ${accessToken}`,
76
+ }),
77
'x-graphql-authorization':
78
opts?.headers?.['Authorization'] ??
79
opts?.headers?.['authorization'] ??
0 commit comments