Contact form 7 Cross-origin issue - form not sending

Not ```
$origin_url = ā€˜httpS://wwtdigital.comā€™;

Right
$origin_url = 'http://wwtdigital.com';

!!!

and in .htaccess

<IfModule mod_headers.c>
  <IfModule mod_setenvif.c>
    SetEnvIf Origin "^(http://yourdomain\.com|http://localhost:3000)$" CORS=$0
  </IfModule>
  Header set Access-Control-Allow-Origin %{CORS}e env=CORS
  Header append Vary "Origin" env=CORS
  <FilesMatch "\.(php|html)$">
  </FilesMatch>
</IfModule>
# END HttpHeaders
1 Like