How to Enable Cookies and JavaScript | Browser Setup Steps

To enable cookies and JavaScript, open your browser’s settings menu, find the Privacy & Security or Site Permissions section, and toggle both options to allow or on.

A browser that won’t load a shopping cart, stream a video, or let you log into a banking site often has one cause: cookies or JavaScript are switched off. It happens after a privacy reset or a security update. Here’s how to turn both back on in Chrome, Firefox, Safari, and Edge, with exact menu paths so you’re in and out in a minute.

Google Chrome

Chrome keeps its cookie and JavaScript controls under Site Settings in the Privacy section. The same path works on Windows, Mac, Android, and iOS.

  1. Click the three‑dot menu (⋮) in the top‑right corner and select Settings.
  2. Choose Privacy and securitySite settings.
  3. For JavaScript: Select JavaScript and toggle “Sites can use JavaScript” to on.
  4. For Cookies: Select Cookies and other site data and choose “Allow all cookies” (or “Standard” on mobile).

You’ll see a blue “Allowed” badge next to each setting once enabled.

Mozilla Firefox

Firefox handles cookies in the main Privacy & Security panel, while JavaScript has a separate toggle in the advanced about:config area.

  1. Click the hamburger menu (≡) and choose Settings.
  2. Click Privacy & Security in the left sidebar.
  3. For Cookies: Under “Cookies and Site Data”, make sure “Block all cookies” is unchecked. If you see “Remember History” selected instead, cookies are enabled by default.
  4. For JavaScript: Type about:config in the address bar and click “I’ll be careful, I promise”. Search for javascript.enabled. Double‑click it (or right‑click → Toggle) until the value reads true.

The about:config page will show javascript.enabled set to true when it’s working.

Apple Safari

Safari’s settings differ slightly between Mac and iPhone/iPad, but both are quick to reach.

On macOS

  1. From the Safari menu, select Settings (or Preferences on older versions).
  2. Click the Security tab.
  3. For JavaScript: Check the box next to “Enable JavaScript”.
  4. For Cookies: In the Privacy tab, set “Cookies and website data” to “Always allow” or “Allow from websites I visit”.

On iPhone / iPad

  1. Open the Settings app and scroll to Apps (or Safari directly on older iOS).
  2. Tap SafariAdvanced.
  3. For JavaScript: It’s on by default. If it’s off, toggle JavaScript to green.
  4. For Cookies: Go back to Safari’s main settings and tap “Block All Cookies” — make sure that toggle is off (white).

After changing, test by reloading a page that previously failed. If the site loads completely, cookies and JS are active.

Microsoft Edge

Edge uses a permissions model very similar to Chrome. The steps work on Windows and Mac equally.

  1. Click the three‑dot menu (⋯) and select Settings.
  2. Choose Privacy, search, and servicesSite permissionsAll permissions.
  3. For JavaScript: Select JavaScript and turn on “Allowed (recommended)”.
  4. For Cookies: Scroll back to Cookies and site permissionsManage and delete cookies and site data and make sure “Allow sites to save and read cookie data” is on.

Edge will show a green checkmark next to each allowed permission.

Browser Cookie Setting Path JavaScript Setting Path
Chrome (Desktop / Android / iOS) Settings → Privacy & Security → Site settings → Cookies Settings → Privacy & Security → Site settings → JavaScript
Firefox (Desktop) Settings → Privacy & Security → Block all cookies (unchecked) about:configjavascript.enabled set to true
Safari (macOS) Settings (Preferences) → Privacy → Cookies & website data → Choose level Settings (Preferences) → Security → Enable JavaScript
Safari (iOS) Settings → Safari → Block All Cookies (off) Settings → Safari → Advanced → JavaScript (on)
Edge (Desktop / Mac) Settings → Privacy, search & services → Site permissions → Cookies Settings → Privacy, search & services → Site permissions → JavaScript
Chrome (iOS) Settings → Content Settings → Block All Cookies (off) Same path, JavaScript toggle
Firefox (iOS) Settings → Privacy → Block All Cookies (off) Not configurable individually (enabled by default)

What Usually Goes Wrong When Enabling Cookies and JavaScript?

The most common slip is toggling the wrong switch. “Block all cookies” sounds like a security move, but it breaks most interactive sites. Another frequent issue is forgetting that corporate IT may have locked these settings — if the toggle is grayed out, contact your admin instead of trying workarounds.

The table below covers the most frequent pitfalls and how to fix them.

Problem Why It Happens Fix
Cookies blocked but logins still fail Third‑party cookies might be blocked; your site uses an SSO provider. In the cookie settings, choose “Allow all cookies” or add the site to the exceptions list.
JavaScript not working after enabling Browser extension (e.g., NoScript) is overriding the global setting. Disable the extension temporarily or grant permission for that specific site.
Changes don’t stick after restart A “clear cookies on exit” setting is wiping your allow list each time. Check the “Clear cookies when browser closes” option and add an exception for sites you need.
Grayed‑out toggles in Edge Group Policy or MDM restriction from an employer. You can’t override it locally — ask your IT department to allow JavaScript for the needed sites.
javascript.enabled toggled back after Firefox update Firefox sometimes resets advanced preferences during a major update. Re‑check about:config and lock the preference (right‑click → Toggle → Lock it).
Safari on iOS won’t save cookie preferences Private Browsing mode is on; it disables persistent cookies. Close all private tabs or switch to a normal tab before adjusting cookie settings.

Is It Safe to Enable JavaScript and Cookies?

Yes, with a few sensible guardrails. Enabling JavaScript lets websites run dynamic content, which is essential for most modern sites, but also opens the door to cross‑site scripting (XSS) if you visit compromised pages. Modern browsers like Chrome and Edge include built‑in Safe Browsing that blocks known malicious scripts. For cookies, the smart trade‑off is to block third‑party cookies while allowing first‑party ones — this stops cross‑site trackers without breaking logins. Safari and Firefox already do this by default.

If you still want extra privacy, use the browser’s “Block all cookies” setting only for sensitive browsing sessions, not as a permanent state.

Verifying Your Settings

Once you’ve toggled the options, test by hard‑reloading a page that requires both features — a banking dashboard, a video player, or a shopping cart. If the page loads fully and all buttons work, cookies and JavaScript are active. For a quick check, visit a site like Microsoft’s JavaScript test page; it will confirm whether your browser is running JavaScript.

Still stuck? Check for interfering extensions or a separate “Content blockers” toggle in your browser’s security settings. On corporate devices, a single call to IT may be the fastest path.

References & Sources