@arsedizioni/ars-utils 20.4.29 → 20.4.30
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.
|
@@ -1630,8 +1630,8 @@ class ClipperService {
|
|
|
1630
1630
|
*/
|
|
1631
1631
|
initialize(serviceUri, appUri, flags = ClipperServiceFlags.None) {
|
|
1632
1632
|
// Create unique client and machine id
|
|
1633
|
-
if (!sessionStorage.getItem('
|
|
1634
|
-
sessionStorage.setItem('
|
|
1633
|
+
if (!sessionStorage.getItem('clipper_client_id')) {
|
|
1634
|
+
sessionStorage.setItem('clipper_client_id', SystemUtils.generateUUID());
|
|
1635
1635
|
}
|
|
1636
1636
|
// Initialize
|
|
1637
1637
|
this._serviceUri = serviceUri;
|
|
@@ -2631,7 +2631,7 @@ class ClipperAuthInterceptor {
|
|
|
2631
2631
|
withCredentials: true,
|
|
2632
2632
|
setHeaders: {
|
|
2633
2633
|
'ngsw-bypass': 'ngsw-bypass',
|
|
2634
|
-
'X-Client-Id': sessionStorage.getItem('
|
|
2634
|
+
'X-Client-Id': sessionStorage.getItem('clipper_client_id') ?? ''
|
|
2635
2635
|
}
|
|
2636
2636
|
});
|
|
2637
2637
|
return next.handle(request)
|