
You enter the right username and password, and WordPress replies: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.” Your browser clearly supports cookies โ you’re reading websites right now. This cookies are blocked WordPress login fix guide explains what’s really happening (a cookie mismatch, not a browser problem) and five steps to get back into your dashboard.
What Causes “Cookies Are Blocked”
When you load wp-login.php, WordPress sets a probe cookie called wordpress_test_cookie. If your browser doesn’t send it back on login, WordPress assumes cookies are blocked โ but usually the real problem is that the cookie was set for a different address than the one you’re visiting. The common causes:
- Site URL mismatch (www vs non-www, http vs https): WordPress sets the cookie for the address in Settings โ General, but you’re visiting a different variant โ e.g.
www.yoursite.comwhen WordPress expectsyoursite.com. The cookie is scoped to one hostname and unreadable on the other. - Stale or corrupt cookies: old cookies from a previous session, a host migration, or a changed URL conflict with the new login cookie.
- Cached login page: a caching plugin or server cache serving a cached copy of
wp-login.phpmeans the probe cookie is never set โ this is the fix most people miss, and the one WordPress’s own documentation calls out. - Security plugin blocking cookies: overzealous security or firewall plugins can strip or block the authentication cookies.
- Browser extensions: privacy extensions, ad blockers, or cookie-blocking settings can prevent the probe cookie from being sent back.
- COOKIE_DOMAIN misconfiguration: a hardcoded
COOKIE_DOMAINinwp-config.phpthat no longer matches your actual domain breaks every login cookie. More login guides live on the KamiWeb blog.
How to Fix “Cookies Are Blocked”
First, a quick diagnostic: try logging in from an incognito/private window or a different browser. If it works there, a stale cookie or extension is your problem โ clear cookies for the domain and disable privacy extensions one by one. If it fails everywhere, the issue is server-side. Work through these steps with our free web tools at hand.

- Clear cookies and cache for your domain. In Chrome: Settings โ Privacy and Security โ Delete browsing data โ tick “Cookies and other site data” and “Cached images and files” โ Delete data. In Firefox: Settings โ Privacy & Security โ Clear Data. Close the browser completely, reopen, and go directly to
yourdomain.com/wp-login.php. This resolves the problem more often than anything else. - Purge all caches โ including the login page. If you use a caching plugin (WP Rocket, W3 Total Cache, WP Super Cache) or server/CDN cache, purge everything. Then make sure
/wp-admin/andwp-login.phpare excluded from caching entirely โ a cached login page never sets the probe cookie. If you’re behind Cloudflare, add a page rule to bypass cache for*wp-login.php*and*wp-admin*. - Make the URLs match exactly. If you can reach the dashboard from another device or session, go to Settings โ General and confirm the WordPress Address and Site Address match the URL you actually visit โ http vs https, www vs non-www, no trailing slashes. If you’re locked out, add these lines to
wp-config.phpabove “stop editing”:define('WP_HOME','https://yoursite.com');anddefine('WP_SITEURL','https://yoursite.com');(use your real address). This overrides the database and is the fastest way to test the fix; then updatesiteurlandhomeinwp_optionsvia phpMyAdmin to match permanently. - Add COOKIE_DOMAIN override. In
wp-config.php, adddefine('COOKIE_DOMAIN', false);above the “stop editing” line. This lets WordPress set cookies without a hardcoded domain, which clears up stubborn domain-scoped cookie issues. - Disable caching and security plugins via FTP. If nothing above works, rename the plugin folders inside
wp-content/plugins/(especially caching and security plugins) to deactivate them without dashboard access. If login then works, reactivate one by one โ you’ve found the blocker โ and configure it to exclude the login page. Browse KamiWeb’s plugin resources for well-behaved alternatives.
Conclusion
The cookies are blocked WordPress login fix is rarely about your browser: clear stale cookies, purge caches (and exclude the login page from caching), make your site URLs match exactly, and check the COOKIE_DOMAIN setting. Nine times out of ten, one of these steps gets you back into wp-admin. More login fixes at KamiWeb.
