@@ -24,11 +24,11 @@ export class Auth {
2424 if ( this . compareNonceWithToken ( token , nonce ) ) {
2525 // remove URL fragment with token, so that users can't accidentally copy&paste it and send it to others
2626 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' ) ;
2828 // localhost is only served via http, though secure cookie is not possible
2929 // 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' ) ;
3232 }
3333 this . _previousRouteService . loadRouting ( ) ;
3434 }
@@ -89,7 +89,7 @@ export class Auth {
8989 }
9090
9191 login ( ) : void {
92- this . _cookieService . set ( Auth . Cookie . Autoredirect , 'true' , 1 , '/' ) ;
92+ this . _cookieService . set ( Auth . Cookie . Autoredirect , 'true' , 1 , '/' , null , false , 'Strict' ) ;
9393 }
9494
9595 logout ( ) : void {
0 commit comments