SOLVED : Send a Bearer Token

Hello,

I’m working on the API of my website and i have a problem.

When i send a request with a bearer token, it seems the token is not sent.

To control it, the response of the request is showing headers of the response. You can see, there’s no Bearer token !

Do you know why ?


Answer to myself:

add this on htaccess:

RewriteEngine On 
RewriteCond %{HTTP:Authorization} ^(.*) 
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

and get headers with:

$headers['Authorization']=$_SERVER['REDIRECT_HTTP_AUTHORIZATION'];

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.