ti-ext-api icon indicating copy to clipboard operation
ti-ext-api copied to clipboard

Authorization header was empty and caused the error ""No valid API token provided"

Open APEX-BVI opened this issue 2 years ago • 0 comments

What happened?

Based on the documentation user running TI on apache should add this to their .htaccess file RewriteCond %{HTTP:Authorization} ^(.) RewriteRule . - [e=HTTP_AUTHORIZATION:%1]

But these lines should be also added to the virtual host

What did you expect to happen?

I added the following to the Virtual Server

Handle Authorization Header

<IfModule mod_headers.c>
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>	

An now the Authorization header is available on my server

Version

3.x

What browser are you seeing the problem on?

No response

Relevant log output

No response

APEX-BVI avatar Jan 11 '24 03:01 APEX-BVI