From 4e9591b1d5fd8397cc0c538db12dc496d2a74a86 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Tue, 25 May 2021 15:52:38 +0200 Subject: [PATCH] ignore cors --- src/util/report.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/report.js b/src/util/report.js index 154208a..3d0d4ac 100644 --- a/src/util/report.js +++ b/src/util/report.js @@ -16,6 +16,8 @@ async function report(body) { headers: { "Content-Type": "application/json" }, + credentials: "omit", + mode: "no-cors", body: body ? JSON.stringify(body) : undefined }); return await resp.json();