MOBILE-2587 login: Don't send fake credentials in desktop apps
parent
ab1c124713
commit
7544b0addd
|
@ -378,7 +378,7 @@ export class CoreSitesProvider {
|
||||||
siteExists(siteUrl: string): Promise<void> {
|
siteExists(siteUrl: string): Promise<void> {
|
||||||
const data: any = {};
|
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.
|
// Send fake parameters for CORS. This is only needed in browser.
|
||||||
data.username = 'a';
|
data.username = 'a';
|
||||||
data.password = 'b';
|
data.password = 'b';
|
||||||
|
|
Loading…
Reference in New Issue