Fix Authorization token stripped out

This commit is contained in:
Matteo Gheza 2021-12-27 14:19:10 +01:00
parent 0f90b28c26
commit 3ccefe7837
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
#Thanks u/IZEN_R!
RewriteEngine on
#https://stackoverflow.com/a/26791450
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
#Thanks u/IZEN_R!
RewriteCond %{REQUEST_URI} !^(.*)dist-frontend/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d