After searching for a while I found the answer somewhere myself. I noticed somewhere that the require valid-user
part in the .htaccess file was surrounded by <Limit GET></Limit>
and tried changing that to POST. And it worked!
<Limit POST>
require valid-user
</Limit>