Title: plugin makes a request to /wp-admin
Last modified: September 16, 2021

---

# plugin makes a request to /wp-admin

 *  Resolved [grimtech](https://wordpress.org/support/users/grimtech/)
 * (@grimtech)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-wrongly-makes-a-request-to-wp-admin/)
 * When I test my site in a private browser window in order to see the experience
   of a visitor, castos-player.js makes a request to /wp-admin/admin-ajax.php.
 * This is a problem because my /wp-admin folder is configured via .htaccess to 
   require a password. This results with a guest user being prompted to type the
   admin password, which they obviously do not have.
 * I have seen this behaviour a couple times previously. It seems to be a problem
   after every SSP update. It seems like the problem gets resolved a few days after
   each release, then there is regression on the next update.
 * Using the Network console, I see the request to /wp-admin/admin-ajax.php being
   made on initial page load, as well as when I scroll down the music player. I 
   am not seeing all tracks in a series playlist as an anonymous user because the/
   wp-admin/admin-ajax.php endpoint returns a 402 error. It’s as if castos-player
   is looking for authentication of whether or not the user is logged in or an admin,
   but that’s not what I’m expecting. The behavior I’m expecting is that visitors
   can listen to the music completely anonymously, without logging in at all.
    -  This topic was modified 4 years, 8 months ago by [grimtech](https://wordpress.org/support/users/grimtech/).
    -  This topic was modified 4 years, 8 months ago by [grimtech](https://wordpress.org/support/users/grimtech/).
      Reason: more deets

Viewing 1 replies (of 1 total)

 *  Plugin Author [Serhiy Zakharchenko](https://wordpress.org/support/users/zahardoc/)
 * (@zahardoc)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-wrongly-makes-a-request-to-wp-admin/#post-14892744)
 * Hi [@grimtech](https://wordpress.org/support/users/grimtech/)!
    You just need
   to exclude admin-ajax.php from requiring the password. Here is an example of .
   htaccess file:
 *     ```
       AuthName "Private Area"
       AuthType Basic
       AuthUserFile .htpasswd
       require valid-user
   
       <Files "admin-ajax.php">
       Allow from all
       Satisfy Any
       </Files>
       ```
   
 * Cheers,
    Sergey

Viewing 1 replies (of 1 total)

The topic ‘plugin makes a request to /wp-admin’ is closed to new replies.

 * ![](https://ps.w.org/seriously-simple-podcasting/assets/icon-256x256.png?rev=
   970355)
 * [Seriously Simple Podcasting](https://wordpress.org/plugins/seriously-simple-podcasting/)
 * [Support Threads](https://wordpress.org/support/plugin/seriously-simple-podcasting/)
 * [Active Topics](https://wordpress.org/support/plugin/seriously-simple-podcasting/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seriously-simple-podcasting/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seriously-simple-podcasting/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Serhiy Zakharchenko](https://wordpress.org/support/users/zahardoc/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-wrongly-makes-a-request-to-wp-admin/#post-14892744)
 * Status: resolved