Support » Fixing WordPress » Problem loading admin-ajax.php while using CloudFlare

  • Resolved Big Fish

    (@big-fish)


    My site is using CloudFlare’s Flexible SSL service. I am trying to use a plugin (Ninja Popups) that creates a popup with an opt-in form. This specific plugin and many others that I’ve tried rely on admin-ajax.php for some reason.

    The front of my site is served through CloudFlare but the admin is not.

    Example:
    https://mysite.com
    http://mysite.com/wp-admin/

    With the plugin activated, I receive the following error:

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

    I have both the “CloudFlare” and the “CloudFlare Flexible SSL” plugin installed.
    https://wordpress.org/plugins/cloudflare/
    https://wordpress.org/plugins/cloudflare-flexible-ssl/

    I’m also running WooCommerce on the site and somehow it loads admin-ajax.php with no issue.

    Does anyone have any ideas on how to fix this?

Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Problem loading admin-ajax.php while using CloudFlare’ is closed to new replies.