If you have access to your server's Apache configuration, check if Authorization
is being stripped.
1 .Open your Apache config file:
sudo nano /etc/apache2/apache2.conf
2.Add this line at the end of the file:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1