Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Missing "Authorization" header

Missing "Authorization" header 3 days 9 hours ago #76347

  • alanm
  • alanm's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Thank you received: 1
  • Karma: 0
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?
The administrator has disabled public write access.

Missing "Authorization" header 2 days 5 hours ago #76409

  • alanm
  • alanm's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Thank you received: 1
  • Karma: 0
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:
$_SERVER['HTTP_AUTHORIZATION'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
The administrator has disabled public write access.
The following user(s) said Thank You: mikebeck
Time to create page: 0.111 seconds
Powered by Kunena Forum