Jump to content

API Auth Headers issue

Recommended Posts

Hi all,

I've been struggling to get my server to support auth headers for the API. I am using Plesk to manage everything and the forum is hosted on Apache with FPM.

What I've tried so far

  1. Adding CGIPassAuth on to top of .htaccess for the /api/ subfolder
  2. Adding to top FcgidPassHeader Authorization of .htaccess 
  3. I tried adding both to the apache directive 
  4. I've tried adding FcgidPassHeader AUTHORIZATION to the primary fcgid.conf file and restarting the service
  5. I've also tried doing a combo of all the above
  6. I tried changing SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 to SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$1 in .htaccess

I've tried a few things that I can't remember but I think I've tried everything that I've found from Googling maybe I missed something else that I can try.

I'll appreciate all the help that I can get. 

Thanks! 🙂

Quick edit:

I am running

PHP 8.2.17 with FPM/FastCGI
Server version: Apache/2.4.37 (AlmaLinux)
Server built:   Oct 18 2023 12:00:09

Edited by flashpoint
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...