Title: Changing api endpoint from http to https?
Last modified: August 22, 2016

---

# Changing api endpoint from http to https?

 *  Resolved [wcburns](https://wordpress.org/support/users/wcburns/)
 * (@wcburns)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/changing-api-endpoint-from-http-to-https/)
 * I encountered an issue with Google Maps today, where maps from elsewhere overlay
   over the location on the map at different zoom areas. You can see this on the
   Google maps API demo, at least as of writing this
 * [http://www.morethanamap.com/demos/basemaps/new-york](http://www.morethanamap.com/demos/basemaps/new-york)
 * I’m not sure if it’s the result of an update, or if it’s related to Google image
   search being hacked, but I found that the solution was to change the API endpoint
   from http to https. With the plugin, this would be on line 16 of ApiClient.php:
 * const API_END_POINT = ‘[http://maps.googleapis.com/maps/api/&#8217](http://maps.googleapis.com/maps/api/&#8217);;
 * This isn’t a problem on most sites I’ve needed to change this on, but one of 
   them uses this plugin. It would be simple to add the s myself, but I don’t want
   to do this, to avoid issues if the plugin gets updated down the road and gets
   overwritten.
 * Would an update that either adds the s or give you the option to be possible?
   Or if anyone has a workaround that allows me to change the endpoint constant 
   from outside of the class, it would be most appreciated.
 * [https://wordpress.org/plugins/pronamic-google-maps/](https://wordpress.org/plugins/pronamic-google-maps/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Remco Tolsma](https://wordpress.org/support/users/remcotolsma/)
 * (@remcotolsma)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/changing-api-endpoint-from-http-to-https/#post-5228695)
 * In the next version of the Pronamic Google Maps plugin we will use [https://](https://wordpress.org/support/topic/changing-api-endpoint-from-http-to-https/?output_format=md).
 * [https://github.com/pronamic/wp-pronamic-google-maps/commit/c273176a21d7ad4d2e97142d7cd1dd3def8d04f0](https://github.com/pronamic/wp-pronamic-google-maps/commit/c273176a21d7ad4d2e97142d7cd1dd3def8d04f0)

Viewing 1 replies (of 1 total)

The topic ‘Changing api endpoint from http to https?’ is closed to new replies.

 * ![](https://ps.w.org/pronamic-google-maps/assets/icon-256x256.png?rev=3194044)
 * [Pronamic Google Maps](https://wordpress.org/plugins/pronamic-google-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pronamic-google-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pronamic-google-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/pronamic-google-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pronamic-google-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pronamic-google-maps/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Remco Tolsma](https://wordpress.org/support/users/remcotolsma/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/changing-api-endpoint-from-http-to-https/#post-5228695)
 * Status: resolved