Skip to content

Commit

Permalink
set credentials: omit for extra privacy
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Jul 16, 2021
1 parent a9da79b commit 5bf0ba4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/runExperiment.ts
Expand Up @@ -51,7 +51,12 @@ async function measure(input: string) : Promise<[string, number]> {
let result : string;
const start_time = performance.now()
try {
await fetch(input, {method: 'GET', mode: 'no-cors', cache: 'no-store'})
await fetch(input, {
method: 'GET',
mode: 'no-cors',
cache: 'no-store',
credentials: 'omit'
})
result = 'ok'
} catch(error) {
result = 'error'
Expand Down

0 comments on commit 5bf0ba4

Please sign in to comment.