Skip to content

Commit

Permalink
Update route.js
Browse files Browse the repository at this point in the history
  • Loading branch information
uesleibros authored Sep 3, 2024
1 parent fed60d8 commit 6e2e4fb
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/app/api/imagens/anroll/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,6 @@ export async function GET(request) {

try {
const url = decodeURIComponent(query);
const testt = await fetch(url, {
method: "HEAD",
headers: {
"Authority": new URL(url).host,
"Host": new URL(url).host,
"Accept": "image/webp",
"Connection": "keep-alive",
"Mode": "cors",
"Origin": `https://${new URL(url).host}`,
"Referer": "https://www.anroll.net/",
"Cf-Ray": "8bc942b6981b5210-GRU",
"Nel": '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
"Report-To": '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=5cULeDVZhT2XGTomTHZHBNgkCWrDOMuKCY1imqjyaln4eueUt%2F3W0VHTYV1s0iZ1k%2B5LO%2B5olLC2L5Iw6CJeWk8Z8gMU85aMIummLJ9WoV6QWYxn45cJuguTZD3tF8sZ8pLcjz8e1j6afRMPppvv"}],"group":"cf-nel","max_age":604800}',
"Server": "cloudflare",
"X-Forwarded-Host": "127.0.0.1",
"X-HTTP-Method-Override": "HEAD",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
}
});
console.log(testt.headers);
const res = await fetch(url, {
headers: {
"Authority": new URL(url).host,
Expand All @@ -45,6 +25,7 @@ export async function GET(request) {
"X-Originating-IP": "172.67.177.146",
"X-Remote-Addr": "172.67.177.146",
"Cluster-Client-IP": "172.67.177.146",
"Cookie": "cf_chl_rc_i=1; cf_clearance=EaQkfDtHavnIrHAsjDWCmX7uFruyw4MSFABs3V.CR.c-1725330835-1.2.1.1-xMEsj3zV6l3D7gTlIKTKNYP5W54OulGZ4AygD9nR0g9S_ti13CpOLntsFKM9fKLAIa5.ehqJPa1hhtKANBpLShiLfciHB6Em8QKu3JJgl1q9bpMAMt.yPKwhXDXQ_oCxrWKzmEvCaBSc9J9jTZ0ldSDfgGW.w8VAvI1Dj4i3sCg4QPmT26sKdZZvJbcyiyk.NhgPmCcIFYxN7EnLj7DRjcy4f75RLHeMeMzfVP9HPv6f7_Rxbtgovp.R4y4f0c4dnzfT5ATMjsNss55Yg.rOGzFXjM7Xw5UozRQaUUdWNuzUVc0Sbr3uz6Yi16xy0bHVbHFgmPWqXOixNkZQjjzduHKOdKilUuktUaF0INf6sw5Y6ApirZBt08dh_ljBcmNOGhYhsVgJOhjK24qpm6zNStBIKp13ADf7poThmb2WNAg",
"X-HTTP-Method-Override": "GET",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
},
Expand Down

0 comments on commit 6e2e4fb

Please sign in to comment.