Answers.Body: <p>If the staging site is behind the basic http auth you want to clear the value stored for option <strong>authx_header_cred</strong> by using <strong>cv vset authx_header_cred=[]</strong></p>
  <p>But if &quot;cv vset&quot; command is not working then you have to clear this value manually from the civicrm database.
  You can do this by using the following MySQL code</p>
  <pre><code>UPDATE civicrm_setting SET value = '' WHERE name = 'authx_header_cred';
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-06-25T04:03:53.087Z
Answers.LastActivityDate: 2024-06-25T04:03:53.087Z
Answers.UserDisplayName: Pratik Patil
Answers.Body: <p>From  <a href="https://github.com/civicrm/civicrm-core/pull/22837" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/22837</a></p>
  <p>In case future me or someone else hits this again hopefully this will provide a solution.</p>
  <p>On dev site which is <strong>behind basic http auth</strong> you can run:</p>
  <p>cv vset authx_header_cred=[]</p>
  <p>If you are hitting this error not on a dev site / behind Basic Http Auth then you probably have a different problem.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-03T23:21:24.113Z
Answers.LastActivityDate: 2023-04-03T23:21:24.113Z
Answers.UserDisplayName: Luke Stewart
Body: <p>After resyncing the database from live to dev I hit the above error on any CiviCRM paths.</p>
  
Tags: <untagged>
Title: Error "HTTP 401 Invalid credential" on dev site (Basic HTTP Auth issue)
ThreadText: # Error "HTTP 401 Invalid credential" on dev site (Basic HTTP Auth issue)
  
  (Asked by: username_0 on 2023-04-03)
  
  After resyncing the database from live to dev I hit the above error on any CiviCRM paths.
  
  **Tags:** untagged
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2024-06-25. Score: 3
  
  If the staging site is behind the basic http auth you want to clear the value stored for option authx_header_cred by using cv vset authx_header_cred=[]
  But if "cv vset" command is not working then you have to clear this value manually from the civicrm database.
  You can do this by using the following MySQL code
  UPDATE civicrm_setting SET value = '' WHERE name = 'authx_header_cred';
  
  
  ---
  
  ### Answer by username_0 on 2023-04-03. Score: 3
  
  From <https://github.com/civicrm/civicrm-core/pull/22837>
  
  In case future me or someone else hits this again hopefully this will provide a solution.
  
  On dev site which is **behind basic http auth** you can run:
  
  cv vset authx\_header\_cred=[]
  
  If you are hitting this error not on a dev site / behind Basic Http Auth then you probably have a different problem.
  
  
  ---
  
  