diff --git a/dmp-frontend/src/app/app.component.ts b/dmp-frontend/src/app/app.component.ts index 1655dc40a..1d17cb1ae 100644 --- a/dmp-frontend/src/app/app.component.ts +++ b/dmp-frontend/src/app/app.component.ts @@ -119,7 +119,9 @@ export class AppComponent implements OnInit, AfterViewInit { this.onlySplash = false; } if (!this.cookieService.check("cookiesConsent")) { - this.cookieService.set("cookiesConsent", "false", 356); + // this.cookieService.set("cookiesConsent", "false", 356); + this.cookieService.set("cookiesConsent", "false", 356,null,null,false, 'Lax'); + } this.hasBreadCrumb = this.router.events.pipe( @@ -152,7 +154,8 @@ export class AppComponent implements OnInit, AfterViewInit { this.statusChangeSubscription = this.ccService.statusChange$.subscribe((event: NgcStatusChangeEvent) => { if (event.status == "dismiss") { - this.cookieService.set("cookiesConsent", "true", 365); + // this.cookieService.set("cookiesConsent", "true", 365); + this.cookieService.set("cookiesConsent", "true", 356,null,null,false, 'Lax'); } }); diff --git a/dmp-frontend/src/app/core/services/auth/auth.service.ts b/dmp-frontend/src/app/core/services/auth/auth.service.ts index 4217d66e5..e3fb7875e 100644 --- a/dmp-frontend/src/app/core/services/auth/auth.service.ts +++ b/dmp-frontend/src/app/core/services/auth/auth.service.ts @@ -81,7 +81,8 @@ export class AuthService extends BaseService { return this.http.post(url, loginInfo, { headers: this.headers }).pipe( map((res: any) => { const principal = this.current(res.payload); - this.cookieService.set('cookiesConsent', 'true', 356); + // this.cookieService.set('cookiesConsent', 'true', 356); + this.cookieService.set("cookiesConsent", "true", 356,null,null,false, 'Lax'); //this.loginContextSubject.next(true); return principal; }), @@ -105,7 +106,8 @@ export class AuthService extends BaseService { return this.http.post(url, credentials, { headers: this.headers }).pipe( map((res: any) => { const principal = this.current(res.payload); - this.cookieService.set('cookiesConsent', 'true', 356); + // this.cookieService.set('cookiesConsent', 'true', 356); + this.cookieService.set("cookiesConsent", "true", 356,null,null,false, 'Lax'); //this.loginContextSubject.next(true); return principal; }),