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