defeated the referrer inhibition

merge-requests/1/head
Julien Veyssier 2016-12-16 02:23:20 +01:00
parent c90ab1d9d6
commit ce41384c3b
2 changed files with 7 additions and 0 deletions

View File

@ -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 - keep time information in loaded tracks/routes/waypoints, written in saved files
- improve load and save : use OC dialogs instead of jqueryfiletree - improve load and save : use OC dialogs instead of jqueryfiletree
### Fixed
- send referrer, IGN tiles work now
## 0.0.2 2016-12-08 ## 0.0.2 2016-12-08
### Added ### Added
- ability to load kml and csv (unicsv format) files - ability to load kml and csv (unicsv format) files

View File

@ -176,6 +176,10 @@ function endsWith(str, suffix) {
} }
function load_map() { function load_map() {
// change meta to send referrer
// usefull for IGN tiles authentication !
$('meta[name=referrer]').attr('content', 'origin');
var layer = getUrlParameter('layer'); var layer = getUrlParameter('layer');
console.log('layer '+layer); console.log('layer '+layer);
var default_layer = 'OpenStreetMap'; var default_layer = 'OpenStreetMap';