<?xml version="1.0" encoding="utf-8"?>
<configuration>
	<system.webServer>
		<!-- Deactivate WebDAV to enable PUT/DELETE -->
		<modules>
			<remove name="WebDAVModule" />
		</modules>
		<handlers>
			<remove name="WebDAV" />
			<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
		</handlers>

		<!-- Allows only POST, PUT and DELETE -->
		<security>
			<requestFiltering>
				<verbs applyToWebDAV="false">
					<add verb="POST" allowed="true" />
					<add verb="PUT" allowed="true" />
					<add verb="DELETE" allowed="true" />
				</verbs>
			</requestFiltering>
		</security>
	</system.webServer>
</configuration>