Your software
My Mautic version is: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips
My PHP version is: 7.3.15
My problem is:
I’m getting 403 error when trying to connect to the Api Using the Basic Auth ,and it says that i dont have permission, and i’m quite sure that i’m using the right credentials, and i’m trying to do a call to get contacts,
and the same Credentials are working fine to access the mautic platform,
get …/api/contacts
<title>403 Forbidden</title>
<h1>Forbidden</h1>
<p>You don't have permission to access /api/contacts
on this server.</p>
Hi mouadallah, by any chance you managed to resolve this? I got similar problem. i have read all the htaccess posts and tried all of them, but still encountered the same 403 errors. I’m using the latest mautic.
Hey joeyk, thanks a lot. I turned on basic auth + cleared the cache. And did all the tips I can find in this forum about 403 error. But none of them work for me
add my Mautic installation folder in the path
<FilesMatch “^/email/(index|index_dev|filemanager/upgrade).php$”>
commented out
<FilesMatch “.php$”>
Require all denied
CHMOD 777 to all my Mautic installation directories.
What I’ve noticed is that, I can access the API from Postman desktop, but not Postman browsers. I ensured the headers are the same. It just never work on browser version and it gives me 403 error.
I am on the latest Mautic, 4.4.3.
PHP Version 8.0.24
Please help me… i am stuck for 2 days already. Tried any way i can. Thanks so much.
oh yes, I also tried using OAUTH2 authentication. Same behavior. I can do it successfully from Postman desktop, but not Postman browser (or any other API tools)
Here you go. Authorization key has been obfuscated. This will work on Desktop Postman, but not on Browser Postman. Thanks so much for looking into this.