How to Enable DOM Storage in Your Browser
DOM storage is already turned on by default in Chrome, Edge, Firefox, and Safari, so most people never need to enable it. When a website says DOM storage or local storage is disabled, the cause is almost always a privacy setting that blocks cookies and site data, a browser extension, or a changed Firefox preference. The quick fix is to let sites save data in your browser’s cookie or site-data settings, then reload the page. Below you’ll find how to enable DOM storage in each major browser, how to test that it works, and what to try when it still fails. What Is DOM Storage? DOM storage is the older name for the Web Storage API, the browser feature that lets a website save small pieces of data on your device as key-value pairs. It comes in two types: Storage type How long the data lasts Who can read it localStorage Until the site, you, or the browser clears it; survives closing the browser Pages from the same origin, in any tab or window sessionStorage Until you close the tab Pages from the same origin, within that tab’s session only Websites use DOM storage to remember your theme, language, a half-filled form, or items in a shopping cart. Unlike cookies, this browser storage is not sent to the web server with every request. Each origin (the scheme, domain, and port, such as https://example.com) gets its own separate storage, so one site can’t read another site’s data. Browsers allow about 5 MiB of localStorage and 5 MiB of sessionStorage per origin (MDN storage quota guide). Don’t confuse DOM storage with the DOM (Document Object Model), which is the page structure a browser builds from HTML. They are separate features; today the standard name for DOM storage is simply Web Storage (MDN Web Storage guide). Is DOM Storage Enabled by Default? Yes. Every modern browser supports localStorage and sessionStorage out of the box, and the feature has worked across major browsers since July 2015 (MDN Web Storage guide). If a site reports that DOM storage is disabled, something has switched it off. The usual causes are: The sections below show where each browser keeps these settings. How to Enable DOM Storage in Google Chrome In Chrome, DOM storage is controlled by the On-device site data setting (Google’s guide to on-device site data). Shortcut: paste chrome://settings/content/siteData into the address bar to jump straight to this page. To allow only one site, scroll to Customized behaviors on the same page. Remove the site from the not-allowed list if it appears there, then add it to the allowed list. The middle option, Delete data sites have saved to your device when you close all windows, keeps local storage working while Chrome is open but erases it when you quit. Chrome has no about:config page or dom.storage.enabled switch; that is a Firefox-only setting. How to Enable DOM Storage in Microsoft Edge Edge controls local storage through its cookie setting, because both count as site data (Microsoft’s guide to Edge cookies). Menu names shift slightly between Edge versions. If a label doesn’t match, type “cookies” into the search box at the top of Edge’s Settings page to jump to the right setting. To allow a single site, stay on the Cookies page, open Allowed to save cookies, and select Add site. Also check that the site isn’t listed under Not allowed to save and read cookies. If sites forget you every time you restart Edge, go to Privacy, search, and services → Clear browsing data → Choose what to clear every time you close the browser. Turn off Cookies and other site data. How to Enable DOM Storage in Mozilla Firefox Firefox has two places to check: the cookie settings that most users see, and the hidden dom.storage.enabled preference. Start with the settings (Mozilla’s guide to blocked cookies). Allow the problem site first (recommended) This lowers privacy protection for that one site, since its trackers can run again, while the rest of your browsing stays protected (Mozilla’s tracking protection guide). If many sites fail, check your cookie settings Check blocked-site exceptions Turn on dom.storage.enabled in about:config This is an advanced check for when the steps above don’t help. It applies only if web storage was switched off at the preference level (Mozilla’s about:config guide). How to Enable DOM Storage in Safari (Mac, iPhone, and iPad) Safari has one switch for this: Block All Cookies. When it’s on, websites can’t save cookies or other website data, which includes local storage (Apple’s Safari cookie settings guide). On a Mac On an iPhone or iPad Apple notes that blocking cookies can stop you from signing in and can trigger “cookies are required” messages (Apple’s iPhone Safari guide). On older iOS versions, Safari appears directly under Settings rather than under Apps. How to Enable DOM Storage on Android In the Chrome app for Android, DOM storage uses the same On-device site data setting as the desktop version (Google’s Chrome for Android guide). You don’t need to change Android’s app permissions. The phone’s storage permission controls access to your files and photos, not website data inside the browser. How to Check Whether DOM Storage Is Working The fastest test takes about 30 seconds in your browser’s developer tools. Open the website you’re having trouble with, then: If the test runs successfully, it removes the temporary value it created. To see what a site has already saved, open the Application tab in Chrome or Edge, or the Storage tab in Firefox, and expand Local Storage. How to Fix DOM Storage Not Working If you allowed site data and DOM storage still fails, match what you’re seeing to the most likely cause below. What you see Likely cause Fix “DOM storage is disabled” or “cookies are required” message Cookies and site data are blocked Allow site data using your browser’s steps above, or add the site to the allowed list Works in one browser but not another A setting or extension in that