--- layout: api title: "v1.6.2 API: L.mapbox.config.FORCE_HTTPS" categories: api version: v1.6.2 permalink: /api/v1.6.2/l-mapbox-config-force_https --- {% raw %}
By default, this is false
. Mapbox.js auto-detects whether the page your map
is embedded in is using HTTPS or SSL, and matches: if you use HTTPS on your site,
it uses HTTPS resources.
Setting FORCE_HTTPS
to true
makes Mapbox.js always require HTTPS resources,
regardless of the host page's scheme.
Example:
L.mapbox.config.FORCE_HTTPS = true;
{% endraw %}