Skip to content
Workers
Visit Workers on GitHub
Set theme to dark (⇧+D)

Respond with another site

Respond to the Worker request with the response from another website (example.com in this example).

addEventListener("fetch", event => {  return event.respondWith(    fetch("https://example.com")  )})

Demo

Open demo