export default { async fetch(request) { const url = new URL(request.url); // Change hostname to InfinityFree domain url.hostname = 'pluh.free.nf'; url.protocol = 'http:'; // Fetch content from InfinityFree let response = await fetch(url.toString(), { method: request.method, headers: request.headers, redirect: 'manual' }); // Clone response and modify headers response = new Response(response.body, response); // Update Content-Security-Policy if needed response.headers.delete('content-security-policy'); response.headers.delete('x-frame-options'); return response; } };