fix(self-hosted): GraphiQL invalided authentication credentials (#29972)
This commit is contained in:
@@ -71,7 +71,9 @@ const GraphiQLPage: NextPageWithLayout = () => {
|
||||
...opts,
|
||||
headers: {
|
||||
...opts?.headers,
|
||||
Authorization: `Bearer ${accessToken}`,
|
||||
...(accessToken && {
|
||||
Authorization: `Bearer ${accessToken}`,
|
||||
}),
|
||||
'x-graphql-authorization':
|
||||
opts?.headers?.['Authorization'] ??
|
||||
opts?.headers?.['authorization'] ??
|
||||
|
||||
Reference in New Issue
Block a user