@arsedizioni/ars-utils 20.4.14 → 20.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2057,10 +2057,6 @@ class ClipperService {
|
|
|
2057
2057
|
* @param flags: the service flags. Default is none.
|
|
2058
2058
|
*/
|
|
2059
2059
|
initialize(serviceUri, appUri, flags = ClipperServiceFlags.None) {
|
|
2060
|
-
// Create unique client id and machine id
|
|
2061
|
-
if (!sessionStorage.getItem('clipper_client_id')) {
|
|
2062
|
-
sessionStorage.setItem('clipper_client_id', SystemUtils.generateUUID());
|
|
2063
|
-
}
|
|
2064
2060
|
// Initialize
|
|
2065
2061
|
this._serviceUri = serviceUri;
|
|
2066
2062
|
this._appUri = appUri;
|
|
@@ -3058,8 +3054,7 @@ class ClipperAuthInterceptor {
|
|
|
3058
3054
|
request = request.clone({
|
|
3059
3055
|
withCredentials: true,
|
|
3060
3056
|
setHeaders: {
|
|
3061
|
-
'ngsw-bypass': 'ngsw-bypass'
|
|
3062
|
-
'X-Client-Id': sessionStorage.getItem('clipper_client_id') ?? ''
|
|
3057
|
+
'ngsw-bypass': 'ngsw-bypass'
|
|
3063
3058
|
}
|
|
3064
3059
|
});
|
|
3065
3060
|
return next.handle(request)
|