After migrating to Cloudflare the contact page on our website stopped working. When I pause Cloudflare it begins working again but the page is not secure. So i know it is an issue with Cloudflare. I have updated my DNS settings with Outlook and it has not resolved. Please advise?
You will need to check your code isn’t trying to send email to a mail server using a hostname that is proxied in Cloudflare. Cloudflare only proxies HTTP/S traffic (unless using Cloudflare Spectrum) so you’ll need your code to use a hostname that’s set to “DNS only” (or create one for the purpose) to send email, or the IP address of the mail server directly.
Usually when you click “send” a pop up saying the message was successfully sent comes up and we receive the email on our end. But, when you click send nothing happens and no email is received. I changes the settings to DNS only , see image
In the console, this error appears on submit… XMLHttpRequest cannot load http://www.talesma.com/save.php?set=mesaj&urun=iletisim due to access control checks.
It’s probably that this specifies an HTTP request from an HTTPS page. Enabling automatic HTTPS rewrites is probably the easiest way for you to fix this.
This problem comes about because you are using Cloudflare to front SSL for your site which does not use SSL itself. Your SSL/TLS mode in Cloudflare will be “Flexible”. This is not secure and is a legacy mode from the days when SSL certificates were expensive and deceives your users into thinking their data is secured when it is not.
Since your origin server expects your site to be served over HTTP and not HTTPS, it is returning links to HTTP pages which browsers are blocking as a security risk as they are seeing the main page served over HTTPS. Automatic HTTPS rewrites don’t seem to be fixing this for you.
The fix is to therefore get SSL to work on your site properly when Cloudflare is disabled, then when working you can re-enable Cloudflare with the SSL/TLS set to the secure “Full (strict)” setting.