I have a simple single page static site that has a basic contact form using a .ajax() to post submissions to [formcarry].
However, I recently noticed that this is no longer working. It hasn’t been touched for about 6 months
The console has the entry
“Access to XMLHttpRequest at 'https://formcarry.com/s/ABCXYZ from origin ‘website[dot]com’ has been blocked by CORS policy: Request header field access-control-allow-headers is not allowed by Access-Control-Allow-Headers in preflight response.”
After reading up about CORS. It should be a simple matter of adding the following snippet to my .htaccess file in the document root however I still can’t seem to get the ajax request to work.
Header add Access-Control-Allow-Origin “https:// formcarry.com/”
Does anyone know what I need to do to get this working?