Only pass Authorization header to PHP if set
https://github.com/getkirby/kirby/issues/4634#issuecomment-1241775782
This commit is contained in:
committed by
Bastian Allgeier
parent
26541380c4
commit
a9ed4e45ca
@@ -1,5 +1,5 @@
|
|||||||
# Kirby .htaccess
|
# Kirby .htaccess
|
||||||
# revision 2020-06-15
|
# revision 2022-09-15
|
||||||
|
|
||||||
# rewrite rules
|
# rewrite rules
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
@@ -43,7 +43,7 @@ RewriteRule ^(.*) index.php [L]
|
|||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# pass the Authorization header to PHP
|
# pass the Authorization header to PHP
|
||||||
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
SetEnvIf Authorization "(.+)" HTTP_AUTHORIZATION=$1
|
||||||
|
|
||||||
# compress text file responses
|
# compress text file responses
|
||||||
<IfModule mod_deflate.c>
|
<IfModule mod_deflate.c>
|
||||||
|
Reference in New Issue
Block a user