From 906467f986eb9948a6f4628ee16d2b29e78bfdd2 Mon Sep 17 00:00:00 2001 From: Matthew Stanciu Date: Mon, 8 Jun 2020 15:27:36 -0400 Subject: [PATCH] Re-add cors anywhere --- lib/use-form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/use-form.js b/lib/use-form.js index 06dec045..604c432e 100644 --- a/lib/use-form.js +++ b/lib/use-form.js @@ -37,7 +37,7 @@ const useForm = ( const { method = 'post' } = options const action = submitURL?.startsWith('/') && process.env.NODE_ENV !== 'development' - ? `https://v3.hackclub.com${submitURL}` + ? `https://cors-anywhere.herokuapp.com/https://v3.hackclub.com${submitURL}` : submitURL const onSubmit = (e) => {