From 54f877880be5c555b1ad62df993639226c850d05 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 16 Feb 2021 13:52:01 +0100 Subject: [PATCH] fetch via no-cors --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index af6c31f69..d5a29b0ba 100644 --- a/index.html +++ b/index.html @@ -160,7 +160,7 @@ const controller = new AbortController(); const id = setTimeout(() => controller.abort(), 2000); - await fetch(url, { signal: controller.signal }); + await fetch(url, { mode: 'no-cors', signal: controller.signal }); clearTimeout(id); @@ -174,8 +174,8 @@ draw(); const [addrBody, metaBody] = await Promise.all([ - fetch('address.json'), - fetch('urlmeta.json') + fetch('https://polkadot.js.org/phishing/address.json'), + fetch('https://polkadot.js.org/phishing/urlmeta.json') ]); [addrJson, metaJson] = await Promise.all([