Title: admin-ajax.php call uses HTTPS but should use http (Force SSL Login/Admin true)
Last modified: August 21, 2016

---

# admin-ajax.php call uses HTTPS but should use http (Force SSL Login/Admin true)

 *  [n1ckn4mee](https://wordpress.org/support/users/n1ckn4mee/)
 * (@n1ckn4mee)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/admin-ajaxphp-call-uses-https-but-should-use-http-force-ssl-loginadmin-true/)
 * Hi,
 * I just found out that all users wont see the full calendar events as they are
   fetched through admin-ajax.php which is forced to ssl….
 * /wp-admin/admin-ajax.php?action=WP_FullCalendar&type=event&category=24&month=
   6&year=2014&start=1404079200&end=1407708000&_=1404392643465
 * I think one should not use admin-ajax.php for this anymore ([https://core.trac.wordpress.org/ticket/19707](https://core.trac.wordpress.org/ticket/19707))
 * As through `define('FORCE_SSL_ADMIN', true);` all requests to admin-ajax.php 
   are forced to use ssl, this is no solution: [http://wordpress.org/support/topic/events-do-not-appear-in-ie-8-9-when-admin-and-frontend-schemes-are-different?replies=1](http://wordpress.org/support/topic/events-do-not-appear-in-ie-8-9-when-admin-and-frontend-schemes-are-different?replies=1)!
 * The HTTPS requests fail (or require user interaction) because I just have a self
   signed SSL-certificate;)
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/admin-ajaxphp-call-uses-https-but-should-use-http-force-ssl-loginadmin-true/#post-5065372)
 * Hi,
 * Which version of WP FullCalendar do you have?
 * Ad far as I know there’s no reason not to use admin-ajax.php in front-facing 
   plugins.
 *  Thread Starter [n1ckn4mee](https://wordpress.org/support/users/n1ckn4mee/)
 * (@n1ckn4mee)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/admin-ajaxphp-call-uses-https-but-should-use-http-force-ssl-loginadmin-true/#post-5065398)
 * I have Version 0.8.4 of WP FullCalendar and Version 5.5.3.1 of Events Manager…
 * Yes **but it does not work if you use self signed ssl certificates** for the 
   https connection. It is no problem at all if they are accepted and no one even
   recognizes that those requests to admin-ajax.php are SSL encrypted…
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/admin-ajaxphp-call-uses-https-but-should-use-http-force-ssl-loginadmin-true/#post-5065438)
 * maybe you can try custom coding for this
 * eg. modify if needed
 *     ```
       function my_em_force_ssl( $template ){
       	if( !is_ssl() && em_is_event_page() ){
       		wp_redirect(str_replace('http:','https:', get_permalink()));
       		die();
       	}
       	return $template;
       }
       add_filter('template_redirect', 'my_em_force_ssl', 10 );
       ```
   
 *  [Dylan Barlett](https://wordpress.org/support/users/dbarlett/)
 * (@dbarlett)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/admin-ajaxphp-call-uses-https-but-should-use-http-force-ssl-loginadmin-true/#post-5065519)
 * You can modify `localize_script()` in wp-fullcalendar.php so that admin-ajax.
   php is always called over HTTP:
 *     ```
       //$js_vars['ajaxurl'] = admin_url('admin-ajax.php');
       $js_vars['ajaxurl'] = admin_url('admin-ajax.php', 'http');
       ```
   
 *  Thread Starter [n1ckn4mee](https://wordpress.org/support/users/n1ckn4mee/)
 * (@n1ckn4mee)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/admin-ajaxphp-call-uses-https-but-should-use-http-force-ssl-loginadmin-true/#post-5065533)
 * Thanks Dylan Barlett that works i used it with conditional is_ssl() to make it
   use https on ssl sites like before 😉

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘admin-ajax.php call uses HTTPS but should use http (Force SSL Login/Admin
true)’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [admin-ajax](https://wordpress.org/support/topic-tag/admin-ajax/)
 * [full calendar](https://wordpress.org/support/topic-tag/full-calendar/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 5 replies
 * 4 participants
 * Last reply from: [n1ckn4mee](https://wordpress.org/support/users/n1ckn4mee/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/admin-ajaxphp-call-uses-https-but-should-use-http-force-ssl-loginadmin-true/#post-5065533)
 * Status: not resolved