Firefox has cookies enabled by default, but you may need to adjust your settings if you turned them off or use a privacy-focused configuration

Most websites require cookies to work properly — they store login information, remember what you put in your shopping cart, and keep you signed into your email. Firefox allows cookies by default, which means you probably do not need to change anything. But if you have disabled cookies or use Firefox's stricter privacy modes, you will need to turn them back on for sites that do not work without them.

The steps differ slightly depending on whether you want cookies on for all websites or just for specific ones you trust. This guide covers both approaches.

Key Takeaways

  • Firefox allows cookies by default in its standard settings, so most people do not need to change anything.
  • If you use Firefox's "Strict" privacy mode, cookies are blocked by default and you will need to switch to "Standard" mode or add exceptions for individual sites.
  • You can allow cookies for all sites by going to Settings > Privacy & Security > Cookies and Site Data and selecting "Allow all cookies".
  • You can allow cookies for only specific websites by clicking the lock icon in the address bar and toggling the cookie setting for that site alone.
  • Clearing your cookies regularly removes stored login data and browsing history, so you may need to log back into websites after clearing them.

Check your current privacy mode setting first

Firefox offers three privacy levels: Standard, Strict, and Custom. The Standard mode allows cookies by default. The Strict mode blocks many cookies and tracking elements, which is why websites may not work properly. If you are using Strict mode and want cookies to work, you have two choices: switch back to Standard mode, or add exceptions for specific websites.

To see which mode you are using, open Firefox and go to Settings (the menu button with three horizontal lines in the top right). Click Privacy & Security on the left side. Under "Enhanced Tracking Protection," you will see which mode is selected. If Strict is highlighted, that is why cookies are not working on some sites.

Turn on cookies for all websites

Open Firefox and click the menu button (three horizontal lines) in the top right corner. Select Settings, then click Privacy & Security on the left. Scroll down to the "Cookies and Site Data" section. You will see three options: "Allow all cookies," "Block cookies and site data from known trackers," and "Block all cookies."

Click "Allow all cookies" if you want websites to store cookies on your computer without restrictions. This is the most permissive setting and will let you use most websites normally. If you are concerned about tracking, the middle option ("Block cookies and site data from known trackers") is a reasonable middle ground — it allows cookies to work while blocking some known advertising and tracking companies.

Allow cookies for a single website

If you want to keep cookies blocked overall but allow them for one specific website, you can add an exception. Go to the website that is not working. Click the lock icon or information icon in the address bar (on the left side of the URL). A small panel will open showing permissions for that site.

Look for "Cookies and Site Data" in that panel. If it shows a toggle or dropdown, click it and select "Allow" or "Allow for this site." The exact wording depends on your Firefox version, but the option will be there. Once you set it, Firefox will allow that website to store cookies while keeping cookies blocked for other sites.

Understand the difference between blocking and clearing cookies

Blocking cookies means Firefox will not let websites store new cookies. Clearing cookies means Firefox will delete the cookies that are already stored on your computer. These are two separate actions, and it is straightforward to confuse them.

If you have turned cookies on but websites still do not recognize you, it may be because you cleared your cookies recently. When you clear cookies, you also clear all stored login information, so you will need to log back in. You can clear cookies manually by going to Settings > Privacy & Security > Cookies and Site Data and clicking "Clear Data," or you can set Firefox to clear them automatically when you close the browser.

Why some websites still do not work even with cookies on

Turning on cookies is usually enough, but some websites require additional permissions. A site might need access to JavaScript, local storage, or third-party cookies (cookies from advertisers or analytics companies embedded in the page). If a website still does not work after you enable cookies, check whether Firefox is blocking JavaScript or third-party cookies for that site.

You can see all the permissions Firefox is blocking for a site by clicking the lock icon in the address bar. If you see a blocked item that the website needs, you can click it and change the setting to "Allow." Start with the most obvious one — if the site says "Please enable JavaScript," that is usually the culprit.

Frequently Asked Questions

What happens if I allow all cookies?

Websites will be able to store cookies on your computer without restriction. This means you will stay logged in longer, your preferences will be remembered, and your shopping cart will persist across visits. It also means advertising companies can track your browsing across multiple websites. The trade-off is convenience versus privacy.

Can I allow cookies for some websites but not others?

Yes. Use the lock icon method described above to add exceptions for individual sites while keeping cookies blocked globally. This gives you the most control — you can allow cookies on sites you trust while blocking them everywhere else.

If I clear my cookies, do I lose my passwords?

No. Cookies and saved passwords are stored separately. Clearing cookies will log you out of websites and remove stored preferences, but your saved passwords will remain. Firefox stores passwords in a separate encrypted database.

Why does Firefox have a "Strict" privacy mode if it blocks websites?

Strict mode prioritizes privacy over convenience. It blocks many tracking cookies and scripts that advertisers use to follow you across the web. Some people prefer this trade-off. If you use Strict mode, you can still add exceptions for sites that need cookies to function properly.

Do I need to restart Firefox after changing cookie settings?

No. Changes to cookie settings take effect when ready. If you change a setting and a website still does not work, try refreshing the page or closing and reopening the website in a new tab.