node.js - NodeJS Azure Website returns 405 on HTTP POST -


i provisioned azure website , put express (nodejs) application on it. website not have special configuration it, provisioned , enabled node 0.12.0 in configuration.

i have app.post method within express app, receives html form browser. however, upon trying submit form express server, server returns 405 method not allowed error.

i suspecting in iis triggering error, have not been able find solution. web.config file allows verbs nodejs app, shown here:

<configuration>      <system.webserver>                     <handlers>                <add name="iisnode" path="app.js" verb="*" modules="iisnode"/>           </handlers> 

try first removing existing handlers , adding new handler:

<handlers>   <remove name="iisnode" />   <add name="iisnode" path="app.js" verb="*" modules="iisnode" /> </handlers> 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -