• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Question WP Admin Login in Website Preview

saikish78

New Pleskian
Unable to login into the website preview WordPress. There is always an error saying Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
 
The site preview doesn't have all the features available. If you'd like to access the WordPress installation, point to it from the hosts file on your local computer instead.
You can find guides online that show you how to do this. If you need additional guidance, tell me the operating system on your PC and I'll give you some pointers.
 
You also have the option to add these lines to your wp-config.php file temporarily, so that Wordpress knows that it is running on the preview URL:
Code:
define( 'WP_HOME', 'https://<preview_URL>' );
define( 'WP_SITEURL', 'https://<preview_URL>' );
 
You also have the option to add these lines to your wp-config.php file temporarily, so that Wordpress knows that it is running on the preview URL:
Code:
define( 'WP_HOME', 'https://<preview_URL>' );
define( 'WP_SITEURL', 'https://<preview_URL>' );

Hi,
I used/tried the define of home and siteurl, with the preview URL and the CSS for the site is messed up... so thinking:
A) it doesn't work or it doesn't help my WP situation
b) is there another trick?

if I use hosts file, all is perfect.
 
Unable to login into the website preview WordPress. There is always an error saying Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
I had the same issue when trying to log in to the WordPress website preview. It can be a bit tricky, but here's what worked for me:

  1. Open your browser settings (I use Chrome, but it should be similar in others).
  2. Look for the "Privacy and Security" section.
  3. Find the "Cookies" settings.
  4. Make sure cookies are enabled. Sometimes browsers update, and settings get reset.
After I did this, I was able to log in without any problems.
 
Back
Top