From 8967fa611e359e0050b82da0fa956992051089c6 Mon Sep 17 00:00:00 2001 From: Andrew Guibert Date: Wed, 9 May 2018 14:06:40 -0500 Subject: [PATCH] Specify HTTP protocol in auth url env var --- frontend/prebuild/src/app/login/login.component.ts | 2 +- frontend/prebuild/src/environments/environment.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/prebuild/src/app/login/login.component.ts b/frontend/prebuild/src/app/login/login.component.ts index ee39890..e8dd584 100644 --- a/frontend/prebuild/src/app/login/login.component.ts +++ b/frontend/prebuild/src/app/login/login.component.ts @@ -69,7 +69,7 @@ export class LoginComponent implements OnInit, OnDestroy { } loginGoogle() { - window.location.href = `http://${environment.API_URL_AUTH}/auth-service/GoogleAuth`; + window.location.href = `${environment.API_URL_AUTH}/auth-service/GoogleAuth`; } async quickJoin() { diff --git a/frontend/prebuild/src/environments/environment.ts b/frontend/prebuild/src/environments/environment.ts index d0a45e7..b4bf3f3 100644 --- a/frontend/prebuild/src/environments/environment.ts +++ b/frontend/prebuild/src/environments/environment.ts @@ -5,7 +5,7 @@ export const environment = { production: false, - API_URL_AUTH: `${document.location.hostname}:8082`, + API_URL_AUTH: `http://${document.location.hostname}:8082`, API_URL_PARTY: `http://${document.location.hostname}:8080/party`, API_URL_GAME_ROUND: `http://${document.location.hostname}:8080/round`, API_URL_GAME_WS: `ws://${document.location.hostname}:8080/round/ws`,