Skip to content

Commit

Permalink
Expand CH collection (#83)
Browse files Browse the repository at this point in the history
* Start collecting header requested client hints.

* Note when platform is accessed from NavigatorUAData via JS.
  • Loading branch information
kdzwinel authored Nov 3, 2022
1 parent fabfb89 commit 8e43a27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion collectors/APICalls/breakpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ const breakpoints = [
{
proto: 'NavigatorUAData',
props: [
{name: 'brands'}
{name: 'brands'},
{name: 'platform'}
],
methods: [
{name: 'getHighEntropyValues'} // request for high entropy information about browser/OS
Expand Down
2 changes: 1 addition & 1 deletion collectors/RequestCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const URL = require('url').URL;
const crypto = require('crypto');
const {Buffer} = require('buffer');

const DEFAULT_SAVE_HEADERS = ['etag', 'set-cookie', 'cache-control', 'expires', 'pragma', 'p3p', 'timing-allow-origin', 'access-control-allow-origin'];
const DEFAULT_SAVE_HEADERS = ['etag', 'set-cookie', 'cache-control', 'expires', 'pragma', 'p3p', 'timing-allow-origin', 'access-control-allow-origin', 'accept-ch'];

class RequestCollector extends BaseCollector {

Expand Down

0 comments on commit 8e43a27

Please sign in to comment.