]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #1556 from kcaran/apache_methods
authorArthurHoaro <arthur@hoa.ro>
Tue, 22 Sep 2020 09:45:58 +0000 (11:45 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Sep 2020 09:45:58 +0000 (11:45 +0200)
1  2 
.htaccess

diff --combined .htaccess
index 8876e346ce70bf3ff951a5ed3e2fe682de837535,76fd7d09de5221dd301c0475707374754d34dee9..af2dc5a7ff24a244d731a5d2382dc496f62d1eda
+++ b/.htaccess
@@@ -7,7 -7,6 +7,7 @@@ RewriteEngine O
  RewriteRule ^(.git|doxygen|vendor) - [F]
  
  # Forward the "Authorization" HTTP header
 +# fixes JWT token not correctly forwarded on some Apache/FastCGI setups
  RewriteCond %{HTTP:Authorization} ^(.*)
  RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
  
@@@ -16,23 -15,7 +16,7 @@@ RewriteCond %{REQUEST_FILENAME} !-
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^ index.php [QSA,L]
  
- <Limit GET POST PUT DELETE OPTIONS>
-   <IfModule version_module>
-     <IfVersion >= 2.4>
-        Require all granted
-     </IfVersion>
-     <IfVersion < 2.4>
-        Allow from all
-        Deny from none
-     </IfVersion>
-   </IfModule>
-   <IfModule !version_module>
-     Require all granted
-   </IfModule>
- </Limit>
- <LimitExcept GET POST PUT DELETE OPTIONS>
+ <LimitExcept GET POST PUT DELETE PATCH OPTIONS>
    <IfModule version_module>
      <IfVersion >= 2.4>
         Require all denied