The WordPress login error "Cookies are blocked or not supported by your browser" appears when WordPress sets its test cookie but cannot read it back. Your browser usually accepts cookies just fine; the cookie is being set for the wrong address, removed by a cache, or blocked by output sent before the headers.
Before you start
- Access to cPanel → File Manager or FTP.
- Try a private window first to rule out browser settings.
Common causes
- Site URL mismatch – WordPress Address and Site Address use
wwworhttpwhile you log in on a different version. - Login page cached by a caching plugin, CDN or Cloudflare rule.
- Stray output – whitespace or a PHP warning before headers stops cookies from being sent.
- Security or cookie consent plugins interfering with the login.
- A wrong
COOKIE_DOMAINinwp-config.php, often left over from a multisite or migration.
How to fix it
- Clear cookies for the site and log in from the exact URL your site uses (check with or without
www). - Check site URLs. In phpMyAdmin, look at
siteurlandhomein thewp_optionstable, or add towp-config.php:define('WP_HOME', 'https://example.com'); define('WP_SITEURL', 'https://example.com'); - Remove a bad cookie domain. Delete any
define('COOKIE_DOMAIN', …)line that does not match your domain. - Exclude login from cache. Purge all caches and make sure
wp-login.phpand/wp-admin/are not cached in LiteSpeed Cache or Cloudflare. - Look for stray output. Check
wp-config.phpand the theme'sfunctions.phpfor spaces or blank lines before<?php. The error log will show "headers already sent"; see headers already sent. - Disable plugins by renaming
wp-content/plugins, then test the login.
Tip: If you recently moved to HTTPS, make sure both URLs in WordPress use https:// and that HTTP redirects to HTTPS. Mixed http/https logins are a classic cause.
FAQ
Do I need to change browser settings?
Rarely. If other sites work, your browser is fine.
Why does it only happen on one domain of a multisite?
Multisite cookie settings or domain mapping are mismatched for that site.
Can Cloudflare cause this?
Yes, a "Cache Everything" rule that covers the login page breaks cookies.
