Quantcast
Channel: Active questions tagged header - Stack Overflow
Viewing all articles
Browse latest Browse all 707

Authorization header is not send on redirect

$
0
0

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.


Viewing all articles
Browse latest Browse all 707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>