From ae129ba8ac23ce847f2a056b78d65c3e6509d9d2 Mon Sep 17 00:00:00 2001 From: Bogdanova Olga Date: Fri, 30 Apr 2021 00:11:29 +0300 Subject: [PATCH] Issues-520: Pass Authorization header to PHP env --- vanilla/.htaccess | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vanilla/.htaccess b/vanilla/.htaccess index 404401e..bbe0cc8 100644 --- a/vanilla/.htaccess +++ b/vanilla/.htaccess @@ -47,6 +47,13 @@ RewriteCond %{ENV:REDIRECT_X_REWRITE} .+ RewriteCond %{ENV:REDIRECT_X_PATH_INFO} (.+) RewriteRule ^index\.php - [E=X_REWRITE:1,E=!REDIRECT_X_REWRITE,E=X_PATH_INFO:%1,E=!REDIRECT_X_PATH_INFO,L] + + #### + # Pass Authorization header to php environment variable to support API authentication + #### + + SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 +