PlayerManagement/Api/Web.config
Tomasi - Developing 3c19151def fix for new hosting
2025-01-29 15:16:23 +01:00

24 lines
664 B
XML

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