These days, I changed one of my Node.js Application from AWS to Azure. However, some functions do not work after migrating.
By tracking logs, I found the porblem is caused by query string limitation as following:
This is a security feature. Do not change this feature unless the scope of the change is fully understood. You can configure the IIS server to reject requests whose query string is greater than a specified value. If the request's query string is greater than the configured value, this error is returned. If the allowed length of the query string needs to be increased, modify the configuration/system.webServer/security/requestFiltering/requestLimits@maxQueryString setting.
And the solution is changing
web.config log as following:
<requestLimits maxQueryString="32768" />
32768 above just a sample, you have to predict the exact limit you need in order to protect your server from attacking.