cors anywhere maybe

This commit is contained in:
Matthew Stanciu 2020-05-13 18:12:01 -04:00
parent b7d9be5586
commit df5149e807

View file

@ -37,7 +37,7 @@ const useForm = (
const { method = 'post' } = options
const action =
submitURL?.startsWith('/') && process.env.NODE_ENV !== 'development'
? `https://hc-v3.now.sh${submitURL}`
? `https://cors-anywhere.herokuapp.com/https://v3.hackclub.com${submitURL}`
: submitURL
const onSubmit = (e) => {