Title: Browser notification: Authentication required
Last modified: May 24, 2019

---

# Browser notification: Authentication required

 *  Resolved [Stefan](https://wordpress.org/support/users/joamp/)
 * (@joamp)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/browser-notification-authentication-required/)
 * Hey Blaz,
    whenever I add the rating to a post and watch it live as a unlogged
   user, a notification pop up in the browser says: authentication required.
 * But it does not affekt page load or something. Everything looks normal.
 * Strange thing. I don’t really get where this could come from. On localhost this
   problem doesn’t exist.
 * Security Setting “Who can rate posts” is set to “Everybody”.
 * Any ideas/suggestions?
 * Thanks!
 * Stefan

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Blaz K.](https://wordpress.org/support/users/blazk/)
 * (@blazk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/browser-notification-authentication-required/#post-11572267)
 * Hi Stefan,
 * this indeed sounds strange. I’m quite sure it’s not coming from the plugin. Is
   it possible that some other plugin on the website outputs this notification? 
   Also please share the link to the website so I can check it out.
 * Regards,
    Blaz
 *  Thread Starter [Stefan](https://wordpress.org/support/users/joamp/)
 * (@joamp)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/browser-notification-authentication-required/#post-11573623)
 * Hey Blaz,
    I did some testing and it’s definitely caused by the rate my post 
   plugin.
 * The problem emerges because I’ve a directory protection on /wp-admin.
    I’ve tested
   it with different sites. When I remove the /wp-admin directory protection the
   plugin works perfect. But when I put it back and go to a page where the rate 
   my post plugin is included, it shows the authentication pop up as if I would 
   go to the /wp-admin log in page.
 * That’s really odd. Never had such problems because of the directory protection.
 * Any idea how I can resolve this issue whitout turning off the directory protection?
 * Thanks,
    Stefan
 *  Plugin Support [Blaz K.](https://wordpress.org/support/users/blazk/)
 * (@blazk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/browser-notification-authentication-required/#post-11573926)
 * Stefan,
 * blocking wp-admin is not the right way to go because both front-end and back-
   end Ajax requests use admin-ajax.php and admin-ajax.php is located in wp-admin
   folder. By doing this you are basically blocking all ajax functionality for users
   who are not logged in. You can read more about this here: [https://www.wordfence.com/blog/2014/05/please-stop-password-protecting-your-wp-admin-folder-because-it-breaks-public-ajax-for-wordpress/](https://www.wordfence.com/blog/2014/05/please-stop-password-protecting-your-wp-admin-folder-because-it-breaks-public-ajax-for-wordpress/)
 * PS: you can block wp-admin but you do need to allow access to admin-ajax.php.
   Here you can learn how to do this (scroll to the end): [https://www.wpbeginner.com/wp-tutorials/how-to-password-protect-your-wordpress-admin-wp-admin-directory/](https://www.wpbeginner.com/wp-tutorials/how-to-password-protect-your-wordpress-admin-wp-admin-directory/)
 * Regards,
    Blaz
    -  This reply was modified 6 years, 11 months ago by [Blaz K.](https://wordpress.org/support/users/blazk/).
 *  Thread Starter [Stefan](https://wordpress.org/support/users/joamp/)
 * (@joamp)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/browser-notification-authentication-required/#post-11574713)
 * Hey Blaz,
    that did the trick.
 * Thanks a lot.
 * I’m just wondering why a contact form (CF7) don’t causes this, although it uses
   ajax too.
 * Thank you for a great support and plugin!
 * Best regards,
    Stefan
 *  Plugin Support [Blaz K.](https://wordpress.org/support/users/blazk/)
 * (@blazk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/browser-notification-authentication-required/#post-11578328)
 * Hi Stefan,
 * that’s a very good question 🙂 I checked and it seem that CF7 is using the WP
   REST API. Something like this here: [https://gopangolin.com/beyond-admin-ajax-using-wordpress-rest-api/](https://gopangolin.com/beyond-admin-ajax-using-wordpress-rest-api/)
 * Regards,
    Blaz

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Browser notification: Authentication required’ is closed to new replies.

 * ![](https://ps.w.org/rate-my-post/assets/icon-128x128.png?rev=2045796)
 * [Rate My Post - Star Rating Plugin by FeedbackWP](https://wordpress.org/plugins/rate-my-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rate-my-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rate-my-post/)
 * [Active Topics](https://wordpress.org/support/plugin/rate-my-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rate-my-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rate-my-post/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Blaz K.](https://wordpress.org/support/users/blazk/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/browser-notification-authentication-required/#post-11578328)
 * Status: resolved