Fix including credentials in gql client
Caused the basic auth popup to constantly open again
Regression 4aad410957
This commit is contained in:
@@ -232,8 +232,8 @@ export class GraphQLClient extends BaseClient<
|
|||||||
const accessToken = AuthManager.getAccessToken();
|
const accessToken = AuthManager.getAccessToken();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
credentials: 'include',
|
|
||||||
...headers,
|
...headers,
|
||||||
...(isAuthRequired && accessToken ? { Authorization: `Bearer ${accessToken}` } : {}),
|
...(isAuthRequired && accessToken ? { Authorization: `Bearer ${accessToken}` } : {}),
|
||||||
},
|
},
|
||||||
@@ -242,9 +242,7 @@ export class GraphQLClient extends BaseClient<
|
|||||||
}
|
}
|
||||||
|
|
||||||
private createUploadLink() {
|
private createUploadLink() {
|
||||||
return createUploadLink({
|
return createUploadLink({ uri: () => this.getBaseUrl() });
|
||||||
uri: () => this.getBaseUrl(),
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private createWSLink() {
|
private createWSLink() {
|
||||||
|
|||||||
Reference in New Issue
Block a user