Fix CorsProxy
Some checks are pending
Test / Test (push) Waiting to run

This commit is contained in:
thororen1234 2025-04-29 01:45:12 -04:00
parent 3d1c654c20
commit 5db0cea8c3
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?" + encodeURIComponent(madeURL.href);
const corsProxyUrl = "https://corsproxy.io/?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?";
const CORS_PROXY = "https://corsproxy.io/?url=";
function corsUrl(url: string | URL) {
return CORS_PROXY + encodeURIComponent(url.toString());