I am trying to redirect to a new location and passing the authorization bearer. But it seems that the bearer token is not send.
I am doing this in my php code
header('Authorization: Bearer ' . $retval); header('Location:http://nextsite.com/home/index', true, 301); exit();
I have enabled the Authorization in my .htaccess file
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
And I am able to call the site with a cURL call where bearer token is send trough without problems.
I am running php version 8.3Server version: Apache/2.4.52 (Ubuntu)Server built: 2024-07-17T18:57:26
I have tried many things, change the order of the header calls, the capitalization of the authorization/bearer without any lock.