osrm-frontend icon indicating copy to clipboard operation
osrm-frontend copied to clipboard

Site failes to load with Firefox when cookies are disabled

Open lonvia opened this issue 10 years ago • 3 comments

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)

lonvia avatar Oct 25 '15 10:10 lonvia

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.

TheMarex avatar Oct 25 '15 15:10 TheMarex

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

lonvia avatar Oct 25 '15 17:10 lonvia

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.

polarbearing avatar Nov 28 '16 18:11 polarbearing