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
Post a Comment