aboutsummaryrefslogtreecommitdiffhomepage
path: root/.htaccess
diff options
context:
space:
mode:
authorVirtualTam <virtualtam+github@flibidi.net>2018-03-25 19:04:05 +0200
committerGitHub <noreply@github.com>2018-03-25 19:04:05 +0200
commit1f43529fd0fa7fe696db539953a0a3fae8158544 (patch)
tree7308cf4041c45d3b1483e8cf1f717cf997380520 /.htaccess
parentcdaf414c980ff181c874f5acc36d863062f80407 (diff)
parent460cf03d6750cf9fa7e94de9af6fd66a704d6ee5 (diff)
downloadShaarli-1f43529fd0fa7fe696db539953a0a3fae8158544.tar.gz
Shaarli-1f43529fd0fa7fe696db539953a0a3fae8158544.tar.zst
Shaarli-1f43529fd0fa7fe696db539953a0a3fae8158544.zip
Merge pull request #1107 from virtualtam/apache/htaccess/jwt-header
httpd: always forward the 'Authorization' header
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess4
1 files changed, 4 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 19dd72a8..7ba4744b 100644
--- a/.htaccess
+++ b/.htaccess
@@ -6,6 +6,10 @@ RewriteEngine On
6# Prevent accessing subdirectories not managed by SCM 6# Prevent accessing subdirectories not managed by SCM
7RewriteRule ^(.git|doxygen|vendor) - [F] 7RewriteRule ^(.git|doxygen|vendor) - [F]
8 8
9# Forward the "Authorization" HTTP header
10RewriteCond %{HTTP:Authorization} ^(.*)
11RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
12
9# REST API 13# REST API
10RewriteCond %{REQUEST_FILENAME} !-f 14RewriteCond %{REQUEST_FILENAME} !-f
11RewriteCond %{REQUEST_FILENAME} !-d 15RewriteCond %{REQUEST_FILENAME} !-d