Skip to content

Commit

Permalink
refactor(mock-e2e): better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Oct 15, 2024
1 parent 1d9a0c8 commit 43ecfd2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/e2e/mock-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,15 @@ const browserAPIRequestDomains =

/**
* Some third-party providers might use random URLs that we don't want to track
* in the privacy report "in clear". We use a pattern to match those URLs and
* adds a generic `host` to the report so that we still keep track of those URLs
* in a generic way.
* in the privacy report "in clear". We identify those private hosts with a
* `pattern` regexp and replace the original host by a more generic one (`host`).
* For example, "my-secret-host.provider.com" could be denoted as "*.provider.com" in
* the privacy report. This would prevent disclosing the "my-secret-host" subdomain
* in this case.
*/
const privateHostMatchers = [];
const privateHostMatchers = [
// { pattern: RegExp, host: string }
];

/**
* @typedef {import('mockttp').Mockttp} Mockttp
Expand Down

0 comments on commit 43ecfd2

Please sign in to comment.