mirror of https://github.com/flarum/flarum
Use better way of ensuring Authorization header
This will need some testing thoughpull/9/head
parent
38ea2b5d49
commit
5aa4530447
|
@ -1,6 +1,8 @@
|
|||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine on
|
||||
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
|
||||
RewriteRule ^api(.*)$ api.php [QSA,L]
|
||||
RewriteRule ^admin(.*)$ admin.php [QSA,L]
|
||||
|
||||
|
@ -8,7 +10,3 @@
|
|||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_wsgi.c>
|
||||
WSGIPassAuthorization On
|
||||
</IfModule>
|
||||
|
|
Loading…
Reference in New Issue