Home > front end >  In Firefox, localStorage data is not accessible by different windows in the same local domain. Is th
In Firefox, localStorage data is not accessible by different windows in the same local domain. Is th

Time:08-19

In JavaScript, I wrote data to localStorage from file:///D:/Path/window1.html.

I used a link to open a window file in the same domain - ///D:/Path/window2.html.

The localStorage data in window2 should be the same as window1, but it isn't. This works correctly in Chrome. Is there some workaround? This is Firefox 103.0.2

CodePudding user response:

This was previously reported and won't be fixed because that would create a security issue. It may not work in the future in other browsers. Serving the pages from a local server is suggested.

  • Related