Project-OSRM / osrm-frontend

Modular rewrite of the OSRM frontend using LRM
BSD 2-Clause "Simplified" License
308 stars 238 forks source link

Site failes to load with Firefox when cookies are disabled #142

Open lonvia opened 8 years ago

lonvia commented 8 years ago

Firefox has a long standing bug that it will return a security exception on localStorage.getItem() when the user has disabled cookies. The frontend hits this bug and fails to load completely. The error message is:

SecurityError: The operation is insecure. bundle.js (line 11)

TheMarex commented 8 years ago

Hm, do you have any idea how we could circumvent this? Looking at the thread there doesn't seem to be a clear work-a-round emerging.

lonvia commented 8 years ago

I've used modernizr to check if local storage is available. It also detects this kind of problem.

polarbearing commented 7 years ago

Had the same issue in Mozilla/Seamonkey. Cookie settings were on default which is here "always ask". But OSRM did not even ask, so the page did not render with the OP's error message in the log.

I now allowed session cookies manually, after which it works.