Title: [Plugin: GeneralStats] Ajax refresh goes through https even if site is http
Last modified: August 20, 2016

---

# [Plugin: GeneralStats] Ajax refresh goes through https even if site is http

 *  Resolved [huyz](https://wordpress.org/support/users/huyz/)
 * (@huyz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-generalstats-makes-https-call-to-admin-ajax-even-if-site-is-http/)
 * This is similar to the problem in core with image headers: [http://core.trac.wordpress.org/ticket/14835](http://core.trac.wordpress.org/ticket/14835)
 * What happens is that for some reason generalstats is making an https call to 
   [https://mysite.com/wp-admin/admin-ajax.php](https://mysite.com/wp-admin/admin-ajax.php)
   even though I’m connecting to [http://mysite.com/](http://mysite.com/) via http.
 * That’s because my admin interface is accessed through https with a self-signed
   certificate, which breaks silently with Ajax (no browser warning popup in this
   case). What GeneralStats should do is check what protocol the page is using, 
   just as in the core ticket above and invoke http if the site is http.
 * Otherwise, Ajax refresh will not work with sites with a self-signed certificate.

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

 *  Plugin Author [Bernhard Riedl](https://wordpress.org/support/users/neoxx/)
 * (@neoxx)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-generalstats-makes-https-call-to-admin-ajax-even-if-site-is-http/#post-2140739)
 * Hi huyz,
 * Thanks for the info and the link. – I’ve implemented the changes but unfortunately
   have no environment setup for testing. – Could you help me out and give the new
   version a spin on your system?
 * Here’s [a link to my mail-address](http://www.neotrinity.at/contact-disclaimer/).
 * Cheers,
    Berny
 *  Thread Starter [huyz](https://wordpress.org/support/users/huyz/)
 * (@huyz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-generalstats-makes-https-call-to-admin-ajax-even-if-site-is-http/#post-2140757)
 * Email sent.
 *  Thread Starter [huyz](https://wordpress.org/support/users/huyz/)
 * (@huyz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-generalstats-makes-https-call-to-admin-ajax-even-if-site-is-http/#post-2140760)
 * The new alpha resolves it.

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

The topic ‘[Plugin: GeneralStats] Ajax refresh goes through https even if site is
http’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/generalstats_8e977b.svg)
 * [GeneralStats](https://wordpress.org/plugins/generalstats/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/generalstats/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/generalstats/)
 * [Active Topics](https://wordpress.org/support/plugin/generalstats/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/generalstats/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/generalstats/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [huyz](https://wordpress.org/support/users/huyz/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-generalstats-makes-https-call-to-admin-ajax-even-if-site-is-http/#post-2140760)
 * Status: resolved