Title: Scan support for basic auth
Last modified: September 6, 2022

---

# Scan support for basic auth

 *  Resolved [amundsan](https://wordpress.org/support/users/amundsan/)
 * (@amundsan)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/scan-support-for-basic-auth/)
 * When developping a website, we used to “hide” it behind basic auth, and it breaks
   scanning.
 * Is it possible to add a wp filter which inject “Authorization” header in ajax
   call ?

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

 *  Plugin Author [Steven Ayers](https://wordpress.org/support/users/stevenayers63/)
 * (@stevenayers63)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/scan-support-for-basic-auth/#post-16006888)
 * [@amundsan](https://wordpress.org/support/users/amundsan/),
 * I can add a hook that would allow you to do that. I’ll let you know when I have
   added a hook for this.
 * -Steven
 *  Plugin Author [Steven Ayers](https://wordpress.org/support/users/stevenayers63/)
 * (@stevenayers63)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/scan-support-for-basic-auth/#post-16006907)
 * [@amundsan](https://wordpress.org/support/users/amundsan/),
 * Instead of adding a hook for you to write a solution, we are going to add some
   settings to accomodate Basica Auth. I have to write the functionality anyway 
   to test it. So basically, you would have to go into Fix Alt Text settings and
   turn on Basic Auth and put in your username and password. Then the scan would
   send the headers automatically.
 * I’ll let you know when I have this working and released.
 * -Steven
    -  This reply was modified 3 years, 8 months ago by [Steven Ayers](https://wordpress.org/support/users/stevenayers63/).
 *  Plugin Author [Steven Ayers](https://wordpress.org/support/users/stevenayers63/)
 * (@stevenayers63)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/scan-support-for-basic-auth/#post-16048671)
 * [@amundsan](https://wordpress.org/support/users/amundsan/),
 * We wrote some functionality to fix the Basic Auth issue and then realized that
   it is not an issue isolated to Fix Alt Text plugin. The scan runs in the background
   off of a WP Cron. If you have Basic Auth protecting the site, then all your WP
   Crons will not run, thus Fix Alt Text’s scan will not run.
 * Since this issue is not isolated to Fix Alt Text, we decided to remove all Basic
   Auth related code we wrote and recommend installing this plugin [https://wordpress.org/plugins/wp-cron-http-auth/](https://wordpress.org/plugins/wp-cron-http-auth/)
 * You will need to either set your username and password in the settings for WP
   Cron HTTP Auth or use the following code snippet in wp-config.php
 *     ```
       define('WP_CRON_HTTP_AUTH_USERNAME', 'Your Basic Auth Username');
       define('WP_CRON_HTTP_AUTH_PASSWORD', 'Your Basic Auth Password');
       ```
   
 * After you have installed the WP Cron HTTP Auth plugin and set your username and
   password, you will need to cancel the Fix Alt Text scan (if running) and start
   a new scan.
    -  This reply was modified 3 years, 8 months ago by [Steven Ayers](https://wordpress.org/support/users/stevenayers63/).
    -  This reply was modified 3 years, 8 months ago by [Steven Ayers](https://wordpress.org/support/users/stevenayers63/).
 *  Plugin Author [Steven Ayers](https://wordpress.org/support/users/stevenayers63/)
 * (@stevenayers63)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/scan-support-for-basic-auth/#post-16115736)
 * I have not heard a response, so I will assume this issue is resolved.

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

The topic ‘Scan support for basic auth’ is closed to new replies.

 * ![](https://ps.w.org/fix-alt-text/assets/icon.svg?rev=2674473)
 * [Fix Alt Text](https://wordpress.org/plugins/fix-alt-text/)
 * [Support Threads](https://wordpress.org/support/plugin/fix-alt-text/)
 * [Active Topics](https://wordpress.org/support/plugin/fix-alt-text/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fix-alt-text/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fix-alt-text/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Steven Ayers](https://wordpress.org/support/users/stevenayers63/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/scan-support-for-basic-auth/#post-16115736)
 * Status: resolved