Hi @Tanul ,
You will need to use the public facing DNS name, e.g., https://yourapp.azurewebsites.net to https://youapp.azurewebsites.net/test1 as calls to localhost will fail with an exception. See https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#local-address-requests
EDIT: If you're using virtual directories, then you should be able to use relative paths e.g. ~/test1; however, using the app service host name is recommended to avoid any issues.
Regards,
Ryan