From 7544b0adddc79dffeeec5cebfc69fad783ee90de Mon Sep 17 00:00:00 2001 From: dpalou Date: Thu, 13 Sep 2018 14:53:13 +0200 Subject: [PATCH] MOBILE-2587 login: Don't send fake credentials in desktop apps --- src/providers/sites.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/sites.ts b/src/providers/sites.ts index 11825e259..01495727e 100644 --- a/src/providers/sites.ts +++ b/src/providers/sites.ts @@ -378,7 +378,7 @@ export class CoreSitesProvider { siteExists(siteUrl: string): Promise { const data: any = {}; - if (!this.appProvider.isMobile()) { + if (!this.appProvider.isMobile() && !this.appProvider.isDesktop()) { // Send fake parameters for CORS. This is only needed in browser. data.username = 'a'; data.password = 'b';