This guide walks you through fixing the “Enable JavaScript and cookies to continue” error that appears in browsers when a website cannot run its scripts or store session data. The fix involves turning on JavaScript and cookies in your browser settings, clearing outdated site data, and checking for extensions that block them. You will need access to your browser’s settings menu and, in some cases, the ability to restart the browser or your device.
What You’ll Need
- Your web browser (Chrome, Firefox, Edge, Safari, or similar)
- Access to browser settings (usually via the menu icon in the top-right or top-left corner)
- Administrator rights on your computer or permission to change browser settings (if on a work or school device)
- Optional: a list of extensions you have installed, to identify potential blockers
Step-by-Step
- Identify your browser. The exact steps differ slightly between Chrome, Firefox, Edge, Safari, and others. Check the browser name in the menu (three dots, three lines, or the Safari menu bar) before proceeding.
- Open browser settings. In Chrome, Edge, or Firefox, click the three-dot or three-line menu in the top-right corner and select “Settings.” In Safari, go to “Safari” in the top menu bar and choose “Settings” or “Preferences.”
- Enable JavaScript. In Chrome: go to “Privacy and security” > “Site settings” > “JavaScript” and ensure “Allowed” is selected. In Edge: “Cookies and site permissions” > “JavaScript” > “Allowed.” In Firefox: type about:config in the address bar, accept the warning, search for javascript.enabled and set it to true. In Safari: go to “Security” tab and check “Enable JavaScript.”
- Enable cookies. In Chrome: “Privacy and security” > “Cookies and other site data” > select “Allow all cookies” (or “Block third-party cookies” only if the site works with that). In Edge: “Cookies and site permissions” > “Manage and delete cookies and site data” > ensure “Allow sites to save and read cookie data” is on. In Firefox: “Privacy & Security” > “Cookies and Site Data” > uncheck “Delete cookies and site data when Firefox is closed” and ensure “Standard” or “Custom” with cookies not blocked. In Safari: “Privacy” tab > uncheck “Block all cookies.”
- Clear site data for the affected site. If the error persists, go back to “Site settings” (Chrome/Edge) or “Cookies and Site Data” (Firefox), find the specific website, and click “Delete” or the trash icon. In Safari, go to “Privacy” > “Manage Website Data,” select the site, and click “Remove.”
- Disable problematic extensions. Open the extensions menu (Chrome: puzzle piece icon; Edge: puzzle piece; Firefox: three-line menu > “Add-ons and themes”; Safari: “Safari” > “Settings” > “Extensions”). Temporarily disable ad blockers, privacy extensions, or script blockers (like NoScript, uBlock Origin, or Privacy Badger). Reload the site. If it works, re-enable extensions one by one to find the culprit.
- Check for a VPN or proxy. Some VPNs or corporate proxies strip cookies or block scripts. Temporarily turn off your VPN or proxy and reload the page. If the error disappears, adjust the VPN settings to allow cookies for that site.
- Restart the browser. Close all browser windows completely (not just the tab) and reopen. This clears temporary glitches that may prevent settings from applying.
- Update your browser. Go to the browser’s “About” page (e.g., Chrome menu > “Help” > “About Google Chrome”) and install any pending updates. Outdated browsers often have compatibility issues with modern JavaScript.
- Try a different browser. If the error only appears in one browser, test the site in another (e.g., Chrome vs. Firefox). This helps isolate whether the problem is browser-specific.
Common Mistakes
- Disabling JavaScript globally without realizing it. Some “privacy” settings or extensions turn off JavaScript for all sites, not just the one you want. Check the global setting, not just per-site permissions.
- Blocking all cookies instead of third-party cookies. Many users select “Block all cookies” to protect privacy, but this breaks most login-based sites. Prefer “Block third-party cookies” instead.
- Forgetting to clear cached data after changing settings. Old cached scripts can still be loaded even after you enable JavaScript. Clear the cache (Ctrl+Shift+Delete on Windows, Cmd+Shift+Delete on Mac) and reload.
- Using a browser in “Incognito” or “Private” mode. Some sites block private browsing because cookies are deleted on exit. Try a normal window.
- Assuming the site is at fault. The error can also be caused by the website’s own code. If you’ve done all steps and it still fails, the site may have a bug.
Tips
- Use per-site exceptions. Instead of allowing JavaScript and cookies everywhere, you can add exceptions for trusted sites. In Chrome: “Site settings” > “JavaScript” > “Add” next to “Allowed sites.” This keeps your privacy elsewhere.
- Check the site’s help page. Many sites have a “Why am I seeing this?” section that lists specific requirements (e.g., “We need cookies to remember your session”).
- Use a clean profile. If you have many extensions, create a new browser profile (Chrome: click profile icon > “Add”) and test the site there. This avoids disabling extensions one by one.
- Keep your browser updated automatically. Enable automatic updates in settings so you always have the latest security and compatibility fixes.
- Whitelist the site in your ad blocker. If you use an ad blocker, add the site to its whitelist. Some ad blockers also block JavaScript that looks like ads.
Troubleshooting
If the error persists after enabling JavaScript and cookies: First, double-check that your changes were saved. In Chrome, the “Allowed” button should be blue. In Firefox, the javascript.enabled value should read true. Then, clear the browser cache completely and restart the browser. If it still fails, try a different device or network (e.g., phone hotspot) to rule out a network-level blocker.
If the error only appears on one website: The site may be checking for specific cookie settings. Try allowing all cookies (including third-party) for that site only. Also, check if the site has a mobile app that works instead. If the site is essential, contact its support with a screenshot of the error.
If the error appears on every site: Your browser settings may be corrupted. Reset the browser to default settings (Chrome: “Settings” > “Reset and clean up” > “Restore settings to their original defaults”; Firefox: “Help” > “More Troubleshooting Information” > “Refresh Firefox”). This removes extensions and resets permissions but keeps bookmarks and passwords.
If you are on a work or school computer: Group policies may force JavaScript or cookies off. You cannot override these. Contact your IT department and ask them to whitelist the site.
If the error shows a specific code (e.g., “Error 1020”): This is often a Cloudflare or similar security check. It may be triggered by your IP address, not your browser settings. Try clearing your DNS cache (Windows: ipconfig /flushdns in Command Prompt; Mac: sudo dscacheutil -flushcache in Terminal) and restarting your router.
Frequently Asked Questions
Q: Does enabling JavaScript slow down my browser?
A: JavaScript can increase page load times slightly, but modern browsers handle it efficiently. The slowdown is usually negligible unless you have many tabs open or an old device.
Q: Is it safe to allow all cookies?
A: Allowing all cookies means sites can track you across sessions. A safer compromise is “Block third-party cookies” and clear cookies regularly. Most legitimate sites work with that setting.
Q: Why does the error say “cookies” when I have cookies enabled?
A: The site may be checking for a specific cookie that was set before you enabled them. Clearing site data (step 5) forces the site to set a fresh cookie.
Q: Can I fix this on my phone?
A: Yes. On mobile browsers (Chrome, Safari, Firefox), go to browser settings, find “Site settings” or “Privacy,” and enable JavaScript and cookies. The steps are similar but may be buried under “Advanced” settings.
Q: What if the site is a banking or government site?
A: These sites often have strict security that requires cookies. Do not disable JavaScript or cookies for them. If you still get the error, try a different supported browser (e.g., some government sites only work in Chrome or Edge).
Q: Will clearing cookies log me out of other sites?
A: Yes, clearing cookies will log you out of sites that use cookie-based logins. You will need to sign in again, but your saved passwords (if any) will still work.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Google Desktop Search Widget on Windows 11
- iPhone Stuck on Setting Up Apple ID: Fixes
- How to Build a Computer Stand (Saturday Workshop)
- Customize Touch Keyboard Themes in Windows 11
- Excel Pivot Table: Change Multiple Field Settings
- WhatsApp: How to Block Unknown Numbers