Advertisement
rodro1

token not found // authorization header send to server

Jul 10th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. token not found // authorization header send to server using htaccess and apache2.conf file
  2.  
  3. I had first to add this to my machines Apache config file:
  4. ----------------------------------------------------------
  5. SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
  6.  
  7. On Linux in /etc/apache2/apache2.conf
  8.  
  9. On Mac using Homebrew in /usr/local/etc/httpd/httpd.conf
  10.  
  11. On Mac with "native" Apache: /private/etc/apache2/httpd.conf or: /etc/apache2/httpd.conf
  12.  
  13. Adding this to .htaccess didn't work for any reason:
  14.  
  15. RewriteEngine On
  16. RewriteCond %{HTTP:Authorization} ^(.*)
  17. RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement