Cookies are blocked error when Defender Mask login URL is active

I get this error “ERROR: Cookies are blocked or not supported by your browser.” When I try to log in for the first time after clearing the cache.

This error only happens when Mask URL login is active in Defender Pro.

  • Nithin Ramdas
    • Support Wizard

    Hi Wayne,

    Hope you are doing good today. :slight_smile:

    I have added the following in the mu-plugins folder:

    setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
    if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);

    And now I don’t see any such issues with logging into the /wp-admin dashboard. Could you please check, and see whether you could replicate the same in your website side?

    Please do let us know how that goes so that we could check further if needed. Have a nice day ahead.

    Best Regards,

    Nithin

  • Nithin Ramdas
    • Support Wizard

    Hi Wayne,

    On checking further, it seems more like a cache issue. I have added the masked URL in the exclusion list for Hummingbird cache.

    Could you please clear the browser cache, and then check whether you could log in without any issue? I tested in Chrome, and Firefox, and it works fine in both these browsers once I cleared the browser cache.

    Please check, and let us know how that goes. Have a nice day.

    Best Regards,

    Nithin