Mixed Content Exception in Wordpress

↘锁芯ラ 提交于 2020-01-14 06:44:07

问题


I'm getting the following error when submitting a Ninja form that was integrated to the wordpress site.

Mixed Content: The page at 'https://my.domain/event/test-page/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://my.domain/wp-admin/admin-ajax.php'. This request has been blocked; the content must be served over HTTPS. 

That is the only error that I'm getting. The site runs in HTTPS. A quick help is utmost appreciated.


回答1:


Are you seeing the mixed content error in WordPress? Mixed content error in WordPress is caused by incorrect HTTPs/SSL settings. Often times it doesn’t affect your website’s functionality, but it can have adverse affects on your website’s SEO and user experience. In this article, we will show you how to fix the mixed content error in WordPress.

For more details:

http://www.wpbeginner.com/plugins/how-to-fix-the-mixed-content-error-in-wordpress-step-by-step/




回答2:


Install the plugin Really Simple SSL. Once installed and activated, click on "Go Ahead!" Blue button to activate it.




回答3:


You could try forcing all http requests to redirect to https. This is a blunt-force tool to solve issues like this, but not elegant. Place this in your .htaccess file above the #BEGIN WordPress line

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


来源:https://stackoverflow.com/questions/49485257/mixed-content-exception-in-wordpress

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!