Render raw file xml when openning url


#1

Hello,
I want to ask that how to config azure web app to render raw xml file like this url
https://techfusion.azurewebsites.net/api/ExternalApi/GetLatestVersion

but my url show : You do not have permission to view this directory or page.
http://massplannertom.azurewebsites.net/api/ExternalApi/GetLatestVersion/

Thanks community !


#2

When I go to your second link, I’m getting a JSON object, rather than a permission error.

Have you tried converting your JSON object into XML, or using an XMLHttpRequest? The object looks like it contains the same type of information as the page you are trying to emulate.