Tighten up cookie security
Mark all cookies as Secure, and the cookies which are not modified client side as HttpOnly.
This commit is contained in:
parent
56a2aa8efa
commit
f91dd6afc2
3 changed files with 4 additions and 11 deletions
|
@ -334,7 +334,7 @@ OSM.Directions = function (map) {
|
|||
|
||||
select.on("change", function (e) {
|
||||
chosenEngine = engines[e.target.selectedIndex];
|
||||
$.cookie("_osm_directions_engine", chosenEngine.id, { expires: expiry, path: "/" });
|
||||
$.cookie("_osm_directions_engine", chosenEngine.id, { secure: true, expires: expiry, path: "/" });
|
||||
getRoute(true, true);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue