0

I have created a static website on Azure, everything works fine from CSS to scrips but my contactform.php file is not loading.

I have an order contact form that needs to access this file contactform.php and I get the error enter image description here

Can anyone give me some advice on how do I solve this? I have tried already using documents that are uploaded by them but nothing worked.

Thank you in advance

Andrei CCL
  • 33
  • 5

1 Answers1

0

The error " The resource doesn't support specified Http Verb" usually occurs if you are trying to use wrong http verb while accessing the file.

  • A lot of content on webservices you need to use POST verb to consume.

  • Try to clear unused or old files in the folder

  • While specifying the folder name make sure you have a forward slash on the end of URL.

  • Try including the CORS configuration as below,

<CorsRule>
<AllowedOrigins>*</AllowedOrigins>
<AllowedMethods>PUT,GET</AllowedMethods>
<AllowedHeaders>*</AllowedHeaders>
<ExposedHeaders>*</ExposedHeaders>
<MaxAgeInSeconds>200</MaxAgeInSeconds>
</CorsRule>
  • If still the issue persists, add below lines in IIS webconfig,
<httpErrors>
<remove statusCode="405" subStatusCode="-1" />
<error statusCode="405" prefixLanguageFilePath="" path="/my-page.htm" responseMode="ExecuteURL" />
</httpErrors>

Please find below links if they are helpful.

References:

Ref1, Ref2, Ref3, Ref4

Sridevi
  • 10,599
  • 1
  • 4
  • 17