]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
API - Apache - Specify allowed HTTP method in .htaccess 1141/head
authorArthurHoaro <arthur@hoa.ro>
Thu, 5 Jul 2018 18:47:26 +0000 (20:47 +0200)
committerArthurHoaro <arthur@hoa.ro>
Thu, 5 Jul 2018 18:47:26 +0000 (20:47 +0200)
.htaccess

index 7ba4744b262af9c1ca97f617c4bb60d9510808e9..b238854c7929d911bb7dc1b5093e29dfbee7cd46 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -14,3 +14,10 @@ RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^ index.php [QSA,L]
+
+<Limit GET POST PUT DELETE OPTIONS>
+    Require all granted
+</Limit>
+<LimitExcept GET POST PUT DELETE OPTIONS>
+    Require all denied
+</LimitExcept>