Skip to content

Instantly share code, notes, and snippets.

@Hikaru4v
Created January 30, 2026 12:53
Show Gist options
  • Select an option

  • Save Hikaru4v/bcdf5bf52a8254f5a0817057e6fe28ce to your computer and use it in GitHub Desktop.

Select an option

Save Hikaru4v/bcdf5bf52a8254f5a0817057e6fe28ce to your computer and use it in GitHub Desktop.
export default {
async fetch(request) {
const form = await request.formData();
const res = await fetch("https://catbox.moe/user/api.php", {
method: "POST",
body: form
});
return new Response(await res.text(), {
headers: { "Access-Control-Allow-Origin": "*" }
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment