Created
March 8, 2023 11:57
-
-
Save Gictorbit/4bef391c3544ea1d4fdd8e9152f03afa to your computer and use it in GitHub Desktop.
cloudflare worker code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener( | |
"fetch", event => { | |
let url = new URL(event.request.url); | |
url.hostname = "Your-Replit-Address"; | |
url.protocol = "https"; | |
let request = new Request(url, event.request); | |
event.respondWith( | |
fetch(request) | |
) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment