@@ -24,11 +24,11 @@ export class Auth {
24
24
if ( this . compareNonceWithToken ( token , nonce ) ) {
25
25
// remove URL fragment with token, so that users can't accidentally copy&paste it and send it to others
26
26
this . removeFragment ( ) ;
27
- this . _cookieService . set ( Auth . Cookie . Token , token , 1 , '/' , null , true ) ;
27
+ this . _cookieService . set ( Auth . Cookie . Token , token , 1 , '/' , null , true , 'Strict' ) ;
28
28
// localhost is only served via http, though secure cookie is not possible
29
29
// following line will only work when domain is localhost
30
- this . _cookieService . set ( Auth . Cookie . Token , token , 1 , '/' , 'localhost' ) ;
31
- this . _cookieService . set ( Auth . Cookie . Token , token , 1 , '/' , '127.0.0.1' ) ;
30
+ this . _cookieService . set ( Auth . Cookie . Token , token , 1 , '/' , 'localhost' , false , 'Strict' ) ;
31
+ this . _cookieService . set ( Auth . Cookie . Token , token , 1 , '/' , '127.0.0.1' , false , 'Strict' ) ;
32
32
}
33
33
this . _previousRouteService . loadRouting ( ) ;
34
34
}
@@ -89,7 +89,7 @@ export class Auth {
89
89
}
90
90
91
91
login ( ) : void {
92
- this . _cookieService . set ( Auth . Cookie . Autoredirect , 'true' , 1 , '/' ) ;
92
+ this . _cookieService . set ( Auth . Cookie . Autoredirect , 'true' , 1 , '/' , null , false , 'Strict' ) ;
93
93
}
94
94
95
95
logout ( ) : void {
0 commit comments