Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
force HTTPS by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Feb 22, 2019
1 parent 68e3835 commit 4efdbb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -649,16 +649,16 @@ in [API access tokens](../api-access-tokens).

## L.mapbox.config.FORCE_HTTPS

By default, this is `false`. Mapbox.js auto-detects whether the page your map
By default, this is `true`. Mapbox.js always requires HTTPS resources,
regardless of the host page's scheme.

Setting `FORCE_HTTPS` to `false` makes Mapbox.js auto-detect 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;
L.mapbox.config.FORCE_HTTPS = false;

## L.mapbox.config.HTTP_URL

Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
module.exports = {
HTTP_URL: 'http://a.tiles.mapbox.com/v4',
HTTPS_URL: 'https://a.tiles.mapbox.com/v4',
FORCE_HTTPS: false,
FORCE_HTTPS: true,
REQUIRE_ACCESS_TOKEN: true
};

0 comments on commit 4efdbb9

Please sign in to comment.