From 19794a620fb779f62a41ba5eb05dc26dadab2459 Mon Sep 17 00:00:00 2001 From: Homada Boumedane <homada.boumedane@unige.ch> Date: Thu, 4 Jul 2019 08:42:43 +0200 Subject: [PATCH] refactor(dlcm-portal): add withCredentials add withCredentials on the post request that ask for token. --- src/app/oauth/oauth-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/oauth/oauth-service.ts b/src/app/oauth/oauth-service.ts index 2b6e60cae..0125b22f9 100644 --- a/src/app/oauth/oauth-service.ts +++ b/src/app/oauth/oauth-service.ts @@ -487,7 +487,7 @@ export class OAuthService extends AuthConfig { .set("Content-Type", "application/x-www-form-urlencoded") .set("Authorization", "Basic " + authData); - this.http.post<TokenResponse>(this.tokenEndpoint, params, {headers}) + this.http.post<TokenResponse>(this.tokenEndpoint, params, {headers, withCredentials: false}) .subscribe((tokenResp) => { this.debug("refresh tokenResponse", tokenResp); this.storeAccessTokenResponse(tokenResp.access_token, tokenResp.refresh_token, tokenResp.expires_in, tokenResp.scope); -- GitLab