์ฃผ์ โ๊ฒ์โ๋๋ณธโ์ด๋ฏธ์งโAI์์โTTSโMP4
export default{async fetch(r){const c={'Access-Control-Allow-Origin':'*','Access-Control-Allow-Methods':'GET,POST,OPTIONS','Access-Control-Allow-Headers':'Content-Type,Authorization'};if(r.method==='OPTIONS')return new Response(null,{headers:c});const u=new URL(r.url);const t=u.searchParams.get('url');if(!t)return new Response('Missing',{status:400,headers:c});try{const x=await fetch(decodeURIComponent(t));const h=new Headers(x.headers);Object.entries(c).forEach(([k,v])=>h.set(k,v));return new Response(x.body,{status:x.status,headers:h})}catch(e){return new Response(e.message,{status:500,headers:c})}}}์บ๋ฆญํฐ ์ด๋ฏธ์ง ์ ๋ก๋