mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
options.auth = false should prevent auth headers from being added to request
This commit is contained in:
parent
f0fd68b04f
commit
1d475ab7a1
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ export async function makeRequest(options) {
|
|||
options.headers.set('Accept', 'application/json');
|
||||
options.credentials = 'include';
|
||||
|
||||
if (!options.auth) {
|
||||
if (!options.auth && options.auth !== false) {
|
||||
if (options.server === 'identity') {
|
||||
IdentityStore = IdentityStore || require('./stores/identity-store').default;
|
||||
const username = IdentityStore.identity().token;
|
||||
|
|
Loading…
Reference in a new issue