Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Commit

Permalink
Fix cross site problems
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrneDev committed Sep 27, 2018
1 parent ca0726f commit 676f850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/forum/dist/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ System.register('reflar/geotags/main', ['flarum/app', 'flarum/models/Post', 'fla

OpenLayers.Layer.OSM.HOT = OpenLayers.Class(OpenLayers.Layer.OSM, {
initialize: function initialize(name, options) {
var url = ["//a.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png", "//b.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png"];
var url = ["https://a.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png", "https://b.tile.openstreetmap.fr/hot/${z}/${x}/${y}.png"];
options = OpenLayers.Util.extend({
numZoomLevels: 19,
attribution: "&copy; <a href='https://www.hotosm.org/'>Humanitarian OpenStreetMap</a>",
Expand Down Expand Up @@ -878,4 +878,4 @@ System.register('reflar/geotags/models/Geotag', ['flarum/Model', 'flarum/utils/m
_export('default', Geotag);
}
};
});
});
2 changes: 1 addition & 1 deletion src/Listener/AddClientAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function addAssets(ConfigureWebApp $event)
]);
$event->addBootstrapper('reflar/geotags/main');

$event->view->addHeadString('<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/lib/OpenLayers.js"></script>');
$event->view->addHeadString('<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/CDK2020/HttpsOpenLayers2/OpenLayers.min.js"></script>');
}

if ($event->isAdmin()) {
Expand Down

0 comments on commit 676f850

Please sign in to comment.