Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- token not found // authorization header send to server using htaccess and apache2.conf file
- I had first to add this to my machines Apache config file:
- ----------------------------------------------------------
- SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
- On Linux in /etc/apache2/apache2.conf
- On Mac using Homebrew in /usr/local/etc/httpd/httpd.conf
- On Mac with "native" Apache: /private/etc/apache2/httpd.conf or: /etc/apache2/httpd.conf
- Adding this to .htaccess didn't work for any reason:
- RewriteEngine On
- RewriteCond %{HTTP:Authorization} ^(.*)
- RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement