Skip to content

Instantly share code, notes, and snippets.

@cruzmayra
Created September 30, 2020 03:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cruzmayra/7601d992b6bcdb265d665928eecacb41 to your computer and use it in GitHub Desktop.
Save cruzmayra/7601d992b6bcdb265d665928eecacb41 to your computer and use it in GitHub Desktop.
Hay que modificar el archivo applicationHost.config para poder aceptar el método PUT.
Referencia: https://www.azuretechguy.com/applicationhost-config-file-in-azure-app-service
* Agregar extensión IIS Manager a Azure webapp
* En applicationHost.xdt agregar lo siguiente:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<security>
<requestFiltering>
<verbs allowUnlisted="true" xdt:Transform="Replace">
<add verb="GET" allowed="true" />
<add verb="HEAD" allowed="true" />
<add verb="POST" allowed="true" />
<add verb="PUT" allowed="true" />
<add verb="DELETE" allowed="true" />
<add verb="OPTIONS" allowed="true" />
</verbs>
</requestFiltering>
</security>
</system.webServer>
</configuration>
@tzkmx
Copy link

tzkmx commented Feb 12, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment