The page you are looking for can not be displayed (Error 405 Method PUT AND PATCH) Azure

0

Hello guys who can help I have a service in azure and I have an application made in laravel, it turns out that I have problems with the data updates stored in the database when updating any data inserted I get this error The page you are looking for an invalid method (HTTP verb) is being used.

E configured the server looking in Google the respective settings to send the method PUT O PATCH and always gives this error according to the law you have to create a web.conf in your public directory of laravel I leave the code

<configuration>
  <system.webServer>
  <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
  <staticContent>
  <remove fileExtension=".svg" />
  <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
  <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
  <clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" />
  </staticContent>
  <handlers>
  <remove name="PHP72_via_FastCGI" />
  <add name="PHP72_via_FastCGI" path="*.php" verb="GET, PUT, POST, HEAD, OPTIONS, TRACE, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK" modules="FastCgiModule" scriptProcessor="D:\Program Files (x86)\PHP\v7.2\php-cgi.exe" resourceType="Either" requireAccess="Script" />
</handlers>
  <rewrite>
  <rules>
  <rule name="Laravel5" stopProcessing="true">
  <match url="^" ignoreCase="false" />
  <conditions logicalGrouping="MatchAll">
  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  </conditions>
  <action type="Rewrite" url="index.php" appendQueryString="true" />
  </rule>
  </rules>
  </rewrite>

  </system.webServer>
  </configuration>

And I leave captures of the headers to see who can give me a solution to this problem

    
asked by vdjkelly 23.06.2018 в 13:13
source

0 answers