guihom
(Guillaume Charbonneau)
1
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 ?
guihom
(Guillaume Charbonneau)
2
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'];
system
(system)
Closed
3
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.