Change CORS Proxy

This commit is contained in:
thororen1234 2026-02-09 16:15:35 -05:00
parent 7af9c0a71a
commit d31fbc1fa1
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ async function addListeners(audioElement: HTMLAudioElement, url: string, parentB
const madeURL = new URL(url);
madeURL.searchParams.set("t", Date.now().toString());
const corsProxyUrl = "https://corsproxy.io/?url=" + encodeURIComponent(madeURL.href);
const corsProxyUrl = "https://cors.keiran0.workers.dev?url=" + encodeURIComponent(madeURL.href);
const response = await fetch(corsProxyUrl);
const blob = await response.blob();
const blobUrl = URL.createObjectURL(blob);

View file

@ -14,7 +14,7 @@ import { FFmpegState } from "./types";
export const cl = classNameFactory("vc-more-stickers-");
export const clPicker = (className: string, ...args: any[]) => cl("picker-" + className, ...args);
const CORS_PROXY = "https://corsproxy.io/?url=";
const CORS_PROXY = "https://cors.keiran0.workers.dev?url=";
function corsUrl(url: string | URL) {
return CORS_PROXY + encodeURIComponent(url.toString());