Commit 1c6d9d81 authored by Moody Salem's avatar Moody Salem

keep list asset requests anonymous

parent c3ad1296
...@@ -22,6 +22,7 @@ export default function Logo({ srcs, alt, ...rest }: LogoProps) { ...@@ -22,6 +22,7 @@ export default function Logo({ srcs, alt, ...rest }: LogoProps) {
{...rest} {...rest}
alt={alt} alt={alt}
src={src} src={src}
crossOrigin="anonymous"
onError={() => { onError={() => {
if (src) BAD_SRCS[src] = true if (src) BAD_SRCS[src] = true
refresh((i) => i + 1) refresh((i) => i + 1)
......
...@@ -42,7 +42,7 @@ export default async function getTokenList( ...@@ -42,7 +42,7 @@ export default async function getTokenList(
const isLast = i === urls.length - 1 const isLast = i === urls.length - 1
let response let response
try { try {
response = await fetch(url) response = await fetch(url, { credentials: 'omit' })
} catch (error) { } catch (error) {
console.debug('Failed to fetch list', listUrl, error) console.debug('Failed to fetch list', listUrl, error)
if (isLast) throw new Error(`Failed to download list ${listUrl}`) if (isLast) throw new Error(`Failed to download list ${listUrl}`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment