Skip to content

Instantly share code, notes, and snippets.

@lmzxtek
Created June 24, 2023 03:31
Show Gist options
  • Select an option

  • Save lmzxtek/a4ea335be2f2a4e7be177e8cf5db9950 to your computer and use it in GitHub Desktop.

Select an option

Save lmzxtek/a4ea335be2f2a4e7be177e8cf5db9950 to your computer and use it in GitHub Desktop.

Revisions

  1. lmzxtek created this gist Jun 24, 2023.
    7 changes: 7 additions & 0 deletions worker-cf.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    export default {
    async fetch(request, env) {
    const url = new URL(request.url);
    url.host = 'ai.fakeopen.com';
    return fetch(new Request(url, request))
    }
    }