From 1d475ab7a14864f2279a2356121750ed14c3cba4 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 29 Sep 2017 12:42:04 -0500 Subject: [PATCH] options.auth = false should prevent auth headers from being added to request --- app/src/flux/mailspring-api-request.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/flux/mailspring-api-request.es6 b/app/src/flux/mailspring-api-request.es6 index 25cd7ff78..61ebed527 100644 --- a/app/src/flux/mailspring-api-request.es6 +++ b/app/src/flux/mailspring-api-request.es6 @@ -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;