Missing "Authorization" header

I am hosting SuiteCRM in a shared hosting environment that uses cPanel and was installed using Softaculous.

I am getting this error when sending requests to the v8 API in v7.10.11:

“Missing “Authorization” header”

I have narrowed this down to what I believe is a default behavior in Apache that removes the authorization header. I have tried various solutions to modify the .htaccess file at the root of the SuiteCRM installation folder but nothing seems to work. Has anyone been able to get this working in a cPanel environment?

I got it to work, it’s a bit of a hack though. I added this line of code at the beginning of /Api/index.php after the opening <?php tag:

1 Like

I’ve created a pull request for this: https://github.com/salesagility/SuiteCRM/pull/7173