addEventListener(
"fetch",event => {
let url=new URL(event.request.url);
url.hostname="域名";
let request=new Request(url,event.request);
event. respondWith(
fetch(request)
)
}
)
把左边 Script 脚本的内容清空,然后复制上面的代码进去
addEventListener(
"fetch",event => {
let url=new URL(event.request.url);
url.hostname="域名";
let request=new Request(url,event.request);
event. respondWith(
fetch(request)
)
}
)
把左边 Script 脚本的内容清空,然后复制上面的代码进去