aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-07-05 20:47:26 +0200
committerArthurHoaro <arthur@hoa.ro>2018-07-05 20:47:26 +0200
commit6410bf96707e381685b7dafbefcccd83ea762934 (patch)
treea970cc7aab1e409f98fa15bd2f5350ac04ebf417
parent7c57bd95383ec7a7d40735957ea9a792c370b5db (diff)
downloadShaarli-6410bf96707e381685b7dafbefcccd83ea762934.tar.gz
Shaarli-6410bf96707e381685b7dafbefcccd83ea762934.tar.zst
Shaarli-6410bf96707e381685b7dafbefcccd83ea762934.zip
API - Apache - Specify allowed HTTP method in .htaccess
-rw-r--r--.htaccess7
1 files changed, 7 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 7ba4744b..b238854c 100644
--- a/.htaccess
+++ b/.htaccess
@@ -14,3 +14,10 @@ RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
14RewriteCond %{REQUEST_FILENAME} !-f 14RewriteCond %{REQUEST_FILENAME} !-f
15RewriteCond %{REQUEST_FILENAME} !-d 15RewriteCond %{REQUEST_FILENAME} !-d
16RewriteRule ^ index.php [QSA,L] 16RewriteRule ^ index.php [QSA,L]
17
18<Limit GET POST PUT DELETE OPTIONS>
19 Require all granted
20</Limit>
21<LimitExcept GET POST PUT DELETE OPTIONS>
22 Require all denied
23</LimitExcept>