Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
APEX-BVI opened this issue Jan 11, 2024 · 0 comments

Comments

@APEX-BVI
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant