Adding options for CORS on form submit