If you added different domain names on the Sub-site of WordPress Multisite, you might encounter a “Cookies are blocked ” error when logging in.

Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.

To enable Cookies on your WordPress Multisite, go to  wp-config.php and define the COOKIE_DOMAIN.

Inside the wp-config.php, you can add the code right after the /* That's all, stop editing! Happy publishing. */

wp-config.php
/* That's all, stop editing! Happy publishing. */
define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']);
ADVERTISEMENT

Leave a Comment

Subscribe to the Newsletter

Subscribe to get my latest content by email. I won't send you spam. Unsubscribe at any time.

Newsletter
ADVERTISEMENT