Mixed Content issue: Insecure XMLHTTPRequest endpoint

Hello,
I have been arising with a mixed content issue in contact form 7 on WordPress when I have added an SSL certificate to my website.

Here is the console message:

Mixed Content: The page at ‘https://mysite.com’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://mysite.com/wp-json/contact-form-7/v1/contact-forms/781/feedback’. This request has been blocked; the content must be served over HTTPS

Any solution will be highly appreciated.

Thanks in advance!

@yash_15 said:
Hello,
I have been arising with a mixed content issue in contact form 7 on WordPress when I have added an SSL certificate to my website.

Here is the console message:

Mixed Content: The page at ‘https://mysite.com’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://mysite.com/wp-json/contact-form-7/v1/contact-forms/781/feedback’. This request has been blocked; the content must be served over HTTPS

Any solution will be highly appreciated.

Thanks in advance!

Hi,
You may want to try to use a Mixed Content Fixer Plugin for WP or use Cloudflare’s Mixed content fixer.

Please make sure your website is fully configured to use HTTPS URLs. If your website supports HTTPS, it should use HTTPS, and you shouldn’t want to do send some data through HTTP anyways (no matter how easy a plugin makes it).

If you use a service like Cloudflare’s HTTPS rewrites, please disable it and set your WordPress Website URL correctly instead. Magical fixes are great if they work, and a confusing mess when they don’t, so I would try to avoid them.