Change CORS url

This commit is contained in:
Jorge Vargas 2025-03-11 20:15:48 -06:00
parent c8cd8c724f
commit 4ece9041a6

View file

@ -10,7 +10,7 @@ function getRandom(list: any[]) {
export function politeFetch(url: string, lastReqRef: React.RefObject<number>) { export function politeFetch(url: string, lastReqRef: React.RefObject<number>) {
const elapsed = Date.now() - lastReqRef.current const elapsed = Date.now() - lastReqRef.current
const corsUrl = `https://cors.chitowarlock.com/${url}` const corsUrl = `https://cors.squid.wtf/${url}`
const headers = { const headers = {
'User-Agent': getRandom(USER_AGENTS), 'User-Agent': getRandom(USER_AGENTS),