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

TOPIC: Missing "Authorization" header

Missing "Authorization" header 5 months 1 day ago #76347

  • alanm
  • alanm's Avatar
  • Offline
  • New Member
  • Posts: 15
  • Thank you received: 3
  • 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 5 months 17 hours ago #76409

  • alanm
  • alanm's Avatar
  • Offline
  • New Member
  • Posts: 15
  • Thank you received: 3
  • 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

Missing "Authorization" header 2 months 5 days ago #80192

  • lazka
  • lazka's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Thank you received: 4
  • Karma: 0
I've created a pull request for this: github.com/salesagility/SuiteCRM/pull/7173
The administrator has disabled public write access.
The following user(s) said Thank You: alanm, pgr, Dillon-Brown
Time to create page: 0.062 seconds
Powered by Kunena Forum