diff options
author | VirtualTam <virtualtam+github@flibidi.net> | 2018-03-25 19:04:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-25 19:04:05 +0200 |
commit | 1f43529fd0fa7fe696db539953a0a3fae8158544 (patch) | |
tree | 7308cf4041c45d3b1483e8cf1f717cf997380520 /.htaccess | |
parent | cdaf414c980ff181c874f5acc36d863062f80407 (diff) | |
parent | 460cf03d6750cf9fa7e94de9af6fd66a704d6ee5 (diff) | |
download | Shaarli-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-- | .htaccess | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -6,6 +6,10 @@ RewriteEngine On | |||
6 | # Prevent accessing subdirectories not managed by SCM | 6 | # Prevent accessing subdirectories not managed by SCM |
7 | RewriteRule ^(.git|doxygen|vendor) - [F] | 7 | RewriteRule ^(.git|doxygen|vendor) - [F] |
8 | 8 | ||
9 | # Forward the "Authorization" HTTP header | ||
10 | RewriteCond %{HTTP:Authorization} ^(.*) | ||
11 | RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] | ||
12 | |||
9 | # REST API | 13 | # REST API |
10 | RewriteCond %{REQUEST_FILENAME} !-f | 14 | RewriteCond %{REQUEST_FILENAME} !-f |
11 | RewriteCond %{REQUEST_FILENAME} !-d | 15 | RewriteCond %{REQUEST_FILENAME} !-d |