adding fallback value for authorisation
This commit is contained in:
1 parent
cf01fe62af
commit
e643b4dc8d
1 file changed
+1
-1
@@ -23,7 +23,7 @@ export const createRemoteSchema = async (uri) => {
|
||||
const link = setContext((request, previousContext) => (
|
||||
{
|
||||
headers: {
|
||||
authorization: previousContext.graphqlContext.headers.authorization
|
||||
authorization: previousContext.graphqlContext.headers.authorization || ''
|
||||
}
|
||||
}
|
||||
)).concat(http)
|
||||
|
||||
Reference in new issue
Block a user