Title: Mixed content blocked, https protected admin area
Last modified: August 21, 2016

---

# Mixed content blocked, https protected admin area

 *  Resolved [Herbert](https://wordpress.org/support/users/hneugebauer/)
 * (@hneugebauer)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/mixed-content-blocked-https-protected-admin-area/)
 * I’m not sure when this started, I evaluated this plugin on a test-site that is
   not using https, but the production site has the backend running on https only.
   
   The OSM plugin does not show a map and therefor no shortcode generation can be
   done. The reason for this seems to be that the plugin loads code, js and css 
   both from the wordpress plugin directory as well as external code via http. But
   as the backend runs on https, the browsers nowadaways will block this attempt
   for loading mixed content. With firebug it’s easy to find the content that isn’t
   loaded: [http://www.<mysite>/wp-content/plugins/osm//css/osm_map.css](http://www.<mysite>/wp-content/plugins/osm//css/osm_map.css)
   [http://openlayers.org/api/2.12/OpenLayers.js](http://openlayers.org/api/2.12/OpenLayers.js)
   [http://www.openstreetmap.org/openlayers/OpenStreetMap.js](http://www.openstreetmap.org/openlayers/OpenStreetMap.js)
   [http://maps.google.com/maps/api/js?sensor=false](http://maps.google.com/maps/api/js?sensor=false)
   [http://www.<mysite>/wp-content/plugins/osm/js/osm-plugin-lib.js](http://www.<mysite>/wp-content/plugins/osm/js/osm-plugin-lib.js)
 * So it seems that the OSM plugin generate the loading URL’s without checking whether
   the backend runs on https.
 * I hope you can fix this, currently the OSM plugin is unusable with a https backend.
 * I briefly checked the various sites: the code from maps.google.com is reachable
   via https as well as openstreetmap.org. But openlayers.org is not on https… you
   may have to bundle the code with your plugin. Which is suggested by openlayers
   anyways, it’s opensource, so that is no problem.
 *  Kind Regards, Herbert
 * [http://wordpress.org/plugins/osm/](http://wordpress.org/plugins/osm/)

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

 *  Thread Starter [Herbert](https://wordpress.org/support/users/hneugebauer/)
 * (@hneugebauer)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/mixed-content-blocked-https-protected-admin-area/#post-4082748)
 * Hello,
 * I made a couple of code changes today, not completely perfect yet, but working
   for me. I had to change osm.php, osm-options.php and copy/change osm-config.php(
   from osm-config-sample.php). I also had to download openlayers api from their
   website as well as three JS files from openseamap.org and upload directly to 
   my web-server.
    It should be possible to include those files directly into the
   plugin, as that code is “opensource”.
 * I will try to contact you via “Forum-DE” to get you the details.
 *  Herbert
 *  [jh0ker](https://wordpress.org/support/users/jh0ker/)
 * (@jh0ker)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/mixed-content-blocked-https-protected-admin-area/#post-4082809)
 * Could you provide the fixed Plugin as a zip? I’m having the same problem, and
   the author doesn’t seem to release a fix soon…
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/mixed-content-blocked-https-protected-admin-area/#post-4082810)
 * **[@jh0ker](https://wordpress.org/support/users/jh0ker/)**: If you require assistance
   then, as per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic. This topic references an old version of WordPress.
 *  Thread Starter [Herbert](https://wordpress.org/support/users/hneugebauer/)
 * (@hneugebauer)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/mixed-content-blocked-https-protected-admin-area/#post-4082811)
 * Hello jh0ker,
    both the plugin and the WP version changed significantly since
   this post. The changes that I did some months ago do not work on current versions.
   I was in contact with the plugin author who “promised” to include fixes in a 
   future version, but not done yet. In case I find enough time over the year-end
   break, I will make changes on the current versions and post a new support topic
   with information. KR, Herbert
 *  Plugin Author [MiKa](https://wordpress.org/support/users/photoweblog/)
 * (@photoweblog)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/mixed-content-blocked-https-protected-admin-area/#post-4082818)
 * opened in new thread

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

The topic ‘Mixed content blocked, https protected admin area’ is closed to new replies.

 * ![](https://ps.w.org/osm/assets/icon-256x256.png?rev=2087144)
 * [OSM - OpenStreetMap](https://wordpress.org/plugins/osm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/osm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/osm/)
 * [Active Topics](https://wordpress.org/support/plugin/osm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/osm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/osm/reviews/)

## Tags

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

 * 5 replies
 * 4 participants
 * Last reply from: [MiKa](https://wordpress.org/support/users/photoweblog/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/mixed-content-blocked-https-protected-admin-area/#post-4082818)
 * Status: resolved