---
layout: api
title: "v3.3.0 JavaScript Library: L.mapbox.config.FORCE_HTTPS"
categories: api
version: v3.3.0
permalink: /api/v3.3.0/l-mapbox-config-force_https/
---
<h2 id="section-l-mapbox-config-force_https">L.mapbox.config.FORCE_HTTPS</h2>
<p>By default, this is <code>true</code>. Mapbox.js always requires HTTPS resources,
regardless of the host page&#39;s scheme.</p>
<p>Setting <code>FORCE_HTTPS</code> to <code>false</code> makes Mapbox.js auto-detect whether the page your map
is embedded in is using