Skip to content

Commit

Permalink
Merge branch 'feature/PB-33595_As-a-user-running-an-instance-serving-…
Browse files Browse the repository at this point in the history
…an-invalid-certificate-I-cannot-sync-the-gpgkeyring' into 'release'

PB-33595 - As a user running an instance serving an invalid certificate I...

See merge request passbolt/passbolt-browser-extension!881
  • Loading branch information
Gamabunta57 committed May 17, 2024
2 parents ad2f91b + 9c27f16 commit 2eb85ca
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/all/background_page/model/keyring.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,19 @@ class Keyring {
url += `&modified_after=${latestSync}`;
}

// Get the updated public keys from passbolt.
const response = await fetch(url, {
const fetchOptions = {
method: 'GET',
credentials: 'include',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
});
};
// eslint-disable-next-line no-undef
const fetchStrategy = typeof customApiClientFetch !== "undefined" ? customApiClientFetch : fetch;

// Get the updated public keys from passbolt.
const response = await fetchStrategy(url, fetchOptions);
const json = await response.json();

// Check response status
Expand Down

0 comments on commit 2eb85ca

Please sign in to comment.