• 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 2 years, 7 months ago by grimtech.
    • This topic was modified 2 years, 7 months ago by grimtech. Reason: more deets
Viewing 1 replies (of 1 total)
  • Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @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.