If you come across this error on your WordPress Login page, the cause might not be what you’re thinking. I guess you might have gone through the obvious steps to figure out what’s causing the issue by enabling cookies on your browser, deactivating/activating your plugins, etc.
This blog might be your last resort 😊. Just kidding. I hope that by the end of this blog, you can fix this error.
The WP configuration file is the key to resolving “cookies are blocked” issue.
Go to the WPConfig.php file of your site; it resides in the root level of your project.
The number of files in your root folder might be different. But essentially, you must have wp-config.php in your directory.
Open this file and check for this line:
define('COOKIE_DOMAIN', 'yourdomain.com');
Double-check if the domain in your URL is the same as the domain specified here in the code above. If not, rename the domain in this “define” method.
For eg: if yourdomain.com/wp-admin is where you see the problem, copy yourdomain.com.