Skip to content

Commit 64398b2

Browse files
committed
Issue #389 and Issue #310 [integrity] Exclude navigator.userAgentData from browser hash generation to avoid unexpected randomness
1 parent 55aa3d5 commit 64398b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/integrity-js/integrity.js

+1
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,7 @@
15121512
const volatileObjectsRegExp = new RegExp(
15131513
'^(\.navigator:object\.languages:object|' + // language preferences
15141514
'\.navigator:object\.serviceWorker:object\.controller:object|' + // Service Worker status
1515+
'\.navigator:object\.userAgentData:object|' + // User-Agent Client Hints data
15151516
'\.performance:object\.navigation:object|' + // navigation history
15161517
'\.screen:object\.orientation:object|' + // screen device
15171518
'\.location:object|' + // location object

0 commit comments

Comments
 (0)