How to fix cookie error when trying to log-in to WordPress Dashboard

If you are getting the error “Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

you can easily fix this by adding the following line to wp-config.php

define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] );

Simply add the line above the “That’s all, stop editing” line and save and then refresh your screen and attempt logging in again.

Best of luck!

Want to ensure your site stays secure and maintained without you having to do the heavy lifting?

See how we can save you time, money & free you up to pursue your passion & focus on what you do best.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top