From ce41384c3b8d34731c5302d4ba086c089ffad650 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Fri, 16 Dec 2016 02:23:20 +0100 Subject: [PATCH] defeated the referrer inhibition --- CHANGELOG.md | 3 +++ js/gpxedit.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd3902f..201de7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - keep time information in loaded tracks/routes/waypoints, written in saved files - improve load and save : use OC dialogs instead of jqueryfiletree +### Fixed +- send referrer, IGN tiles work now + ## 0.0.2 – 2016-12-08 ### Added - ability to load kml and csv (unicsv format) files diff --git a/js/gpxedit.js b/js/gpxedit.js index e7191eb..79bbe31 100644 --- a/js/gpxedit.js +++ b/js/gpxedit.js @@ -176,6 +176,10 @@ function endsWith(str, suffix) { } function load_map() { + // change meta to send referrer + // usefull for IGN tiles authentication ! + $('meta[name=referrer]').attr('content', 'origin'); + var layer = getUrlParameter('layer'); console.log('layer '+layer); var default_layer = 'OpenStreetMap';