API - Apache - Specify allowed HTTP method in .htaccess

This commit is contained in:
ArthurHoaro 2018-07-05 20:47:26 +02:00
parent 7c57bd9538
commit 6410bf9670

View file

@ -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>