Cookies are turned on by default in Firefox, but you may need to adjust settings if a website isn't working

Firefox allows cookies by default, which means most websites will work without you doing anything. However, if a site tells you to enable cookies, or if you've blocked them in the past, you can turn them back on in Firefox settings in about two minutes.

The steps differ slightly depending on whether you want to allow all cookies, allow cookies only from sites you visit, or create exceptions for specific websites. This guide covers all three approaches so you can choose what works for your privacy comfort level.

Key Takeaways

  • Firefox stores cookies by default, so you likely don't need to change anything unless a website specifically asks you to enable them.
  • You can allow all cookies, allow only cookies from sites you actively visit, or block cookies entirely — each option is in the same Firefox settings menu.
  • If one website needs cookies but you want to block them elsewhere, you can add that single site to an exceptions list without changing your overall settings.
  • Clearing your cookies regularly removes tracking data, but it also logs you out of websites and erases your saved preferences on those sites.

How to turn cookies on for all websites

Open Firefox and click the menu button (three horizontal lines) in the top right corner. Select Settings, then click Privacy & Security in the left sidebar.

Under the "Cookies and Site Data" section, you'll see a dropdown menu that currently shows one of three options: "Reject all cookies", "Reject third-party cookies", or "Allow all cookies". Click the dropdown and select Allow all cookies. Firefox will save this change immediately.

If you see a message that says cookies are blocked, this setting is what controls it. Once you've selected "Allow all cookies", reload the website that was asking you to enable them, and it should work.

How to allow cookies only from sites you visit

This is Firefox's middle-ground option and is a reasonable choice if you want to use cookies but limit tracking. Follow the same steps above: Settings > Privacy & Security > "Cookies and Site Data" dropdown.

Select Reject third-party cookies. This allows cookies from the website you're visiting, but blocks cookies placed by advertisers and other companies tracking you across the web. Most websites will work fine with this setting, and you'll reduce the amount of cross-site tracking data collected about you.

How to add one website to your cookies exceptions list

If you want to block cookies everywhere except for one or two specific sites, you can create an exceptions list. Go to Settings > Privacy & Security and scroll to "Cookies and Site Data".

Below the dropdown menu, you'll see a button labeled Manage Exceptions. Click it and type the website address (for example, example.com) in the text field. Click Allow, then Save Changes. That website will now store cookies even if your main setting is to reject them.

You can add as many sites as you need to this list. Each one will be allowed to use cookies while your overall setting remains unchanged for all other websites.

What to do if cookies are still not working after you've enabled them

If you've turned on cookies but a website still isn't working, the problem may not be cookies at all. Some websites also require JavaScript, which is a separate setting. Go to Settings > Privacy & Security and look for "Permissions" — check that JavaScript is not blocked.

Another common issue is that your browser cache or cookies are corrupted. You can clear them without losing your passwords: go to Settings > Privacy & Security, scroll to "Cookies and Site Data", and click Clear Data. Make sure only "Cookies and Site Data" is checked, not "Cached Web Content" or "Browsing History", then click Clear. Reload the website and try again.

If the website still doesn't work, contact the website's support team — they can tell you whether they have a known issue with Firefox or whether something else is blocking the connection.

Why websites ask you to enable cookies

Cookies store small pieces of information on your computer so websites can remember you. When you log into an email account, the website uses a cookie to keep you logged in as you move between pages. When you add items to a shopping cart, a cookie remembers what you picked. Without cookies, you'd have to log in again on every page.

Some websites also use cookies to remember your preferences — like your language choice, your font size, or whether you've already seen a notification. These are convenience features that don't work without cookies enabled.

The difference between first-party and third-party cookies

First-party cookies come from the website you're visiting. They're generally less of a privacy concern because they only track your activity on that one site.

Third-party cookies come from advertisers, analytics companies, and other services embedded in the website. These cookies follow you across many different websites and build a profile of your browsing habits. If you select "Reject third-party cookies" in Firefox, you block these tracking cookies while still allowing the website itself to function.

What happens when you clear your cookies

Clearing cookies removes all the stored data websites have placed on your computer. This logs you out of most websites, erases your saved preferences, and removes tracking cookies from advertisers. Many people clear cookies regularly as a privacy practice.

However, clearing cookies also means you'll have to log back into websites the next time you visit them, and any saved preferences (like your preferred language or font size) will reset to the website's defaults. You can clear cookies on a schedule — Firefox can do this automatically when you close the browser if you want. Go to Settings > Privacy & Security > "Cookies and Site Data" and check the box for Delete cookies and site data when Firefox is closed.

Frequently Asked Questions

Will enabling cookies make my computer less secure?

Cookies themselves don't install malware or viruses. However, they do allow websites and advertisers to track your activity. Enabling cookies is necessary for most websites to work, but you can reduce tracking by choosing "Reject third-party cookies" instead of "Allow all cookies".

Can I enable cookies for one website but block them for others?

Yes. Set your main cookie setting to "Reject all cookies", then use the Manage Exceptions button to add specific websites where you want cookies allowed. Each site you add will store cookies while all others remain blocked.

What's the difference between clearing cookies and disabling them?

Disabling cookies prevents websites from storing new cookies going forward. Clearing cookies deletes the cookies that are already stored on your computer. You can do both, or just one — it depends on what you're trying to accomplish.

Do I need to restart Firefox after changing cookie settings?

No. Firefox saves cookie settings immediately, and they take effect right away. You don't need to close and reopen the browser, though reloading the website that asked you to enable cookies is a good idea.

Why does a website say cookies are disabled when I've turned them on?

The website may be checking for a specific type of cookie that Firefox is still blocking. Try selecting "Allow all cookies" instead of "Reject third-party cookies". If that doesn't work, the website may also require JavaScript — check that it's enabled in your Privacy & Security settings.