I’m facing an error on passing authorization header, In one request I’m able to generate token but when I’m using this token in another call for any functionality. It gives me an error " You are not authorized to access that location".
I have also changed the .htaccess file code in webroot by adding this code but it not work for me.
This is my .htaccess file code.
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
A small help is highly appreciable.