Re-add cors anywhere

This commit is contained in:
Matthew Stanciu 2020-06-08 15:27:36 -04:00
parent d78e1e6edf
commit 906467f986

View file

@ -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) => {