Browse Source

Issue #2446 : Fix passing authentication headers (#2449)

* Issue #2446 : Fix passing authentication headers. Use CGIPassAuth is version is high enough

* Issue #2446 : Remove CGIPassAuth due to potential issues with AllowOverride rights.

* Tabs
Nick Cross 6 năm trước cách đây
mục cha
commit
1aa2af9752
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      p/api/.htaccess

+ 1 - 1
p/api/.htaccess

@@ -1,5 +1,5 @@
 <IfModule mod_setenvif.c>
 <IfModule mod_setenvif.c>
-	SetEnvIfNoCase "^Authorization$" "(.*)" HTTP_AUTHORIZATION=$1
+	SetEnvIfNoCase "Authorization" "(.*)" HTTP_AUTHORIZATION=$1
 </IfModule>
 </IfModule>
 <IfModule !mod_setenvif.c>
 <IfModule !mod_setenvif.c>
 	<IfModule mod_rewrite.c>
 	<IfModule mod_rewrite.c>